Discovery Service. Get Types(Type, Boolean) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the list of available types.
public: System::Collections::ICollection ^ GetTypes(Type ^ baseType, bool excludeGlobalTypes);
public System.Collections.ICollection GetTypes (Type baseType, bool excludeGlobalTypes);
public System.Collections.ICollection GetTypes (Type? baseType, bool excludeGlobalTypes);
abstract member GetTypes : Type * bool -> System.Collections.ICollection
Public Function GetTypes (baseType As Type, excludeGlobalTypes As Boolean) As ICollection
The base type to match. Can be
Indicates whether types from all referenced assemblies should be checked.
A collection of types that match the criteria specified by
null, all types are returned. Otherwise, only types derived from the specified base type are returned. If
false, types from all referenced assemblies are checked. Otherwise, only types from non-Global Assembly Cache (GAC) referenced assemblies are checked. For more information, see Working with Assemblies and the Global Assembly Cache.