When implemented by a derived class, searches for the specified nested type, using the specified binding constraints.
[Visual Basic] Overloads MustOverride Public Function GetNestedType( _ ByVal name As String, _ ByVal bindingAttr As BindingFlags _ ) As Type [C#] public abstract Type GetNestedType( string name, BindingFlags bindingAttr ); [C++] public: virtual Type* GetNestedType( String* name, BindingFlags bindingAttr ) = 0; [JScript] public abstract function GetNestedType( name : String, bindingAttr : BindingFlags ) : Type;
-or-
zero, to conduct a case-sensitive search for public methods.
A Type object representing the nested type that matches the specified requirements, if found; otherwise, a null reference (in Visual Basic Nothing).
Exception Type | Condition |
---|---|
ArgumentNullException | name is a null reference (Nothing). |
Abstract. This method must be implemented by a derived class.
The following BindingFlags filter flags can be used to define which nested types should be included in the search:
The following BindingFlags modifier flags can be used to change how the search works:
See BindingFlags for more information.
Type Class | Type Members | System Namespace | Type.GetNestedType Overload List