When implemented by a derived class, searches for the types nested within the current Type, using the specified binding constraints.
[Visual Basic] Overloads MustOverride Public Function GetNestedTypes( _ ByVal bindingAttr As BindingFlags _ ) As Type () [C#] public abstract Type[] GetNestedTypes( BindingFlags bindingAttr ); [C++] public: virtual Type* GetNestedTypes( BindingFlags bindingAttr ) [] = 0; [JScript] public abstract function GetNestedTypes( bindingAttr : BindingFlags ) : Type[];
-or-
zero, to conduct a case-sensitive search for public methods.
An array of Type objects representing all the types nested within the current Type that match the specified binding constraints.
-or-
An empty array of type Type, if no types are nested within the current Type, or if none of the nested types match the binding constraints.
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:
Calling this method with only the Public flag or only the NonPublic flag will return the specified nested types and does not require any other flags.
See BindingFlags for more information.
Type Class | Type Members | System Namespace | Type.GetNestedTypes Overload List