Returns the public and non-public nested types that are declared by this type.
[Visual Basic] Overrides Public Function GetNestedType( _ ByVal name As String, _ ByVal bindingAttr As BindingFlags _ ) As Type [C#] public override Type GetNestedType( string name, BindingFlags bindingAttr ); [C++] public: override Type* GetNestedType( String* name, BindingFlags bindingAttr ); [JScript] public override function GetNestedType( name : String, bindingAttr : BindingFlags ) : Type;
Returns an array of Type objects representing the public and non-public types declared by this type. An empty array is returned if there are no types, as specified.
Exception Type | Condition |
---|---|
NotSupportedException | This method is not implemented. |
This method is not currently supported. As a workaround, retrieve the type using Type.GetType or Assembly.GetType and use reflection on the retrieved type.
NGWS Runtime Security:
ReflectionPermission | TypeInformation required for non-public members |
TypeBuilder Class | TypeBuilder Members | System.Reflection.Emit Namespace