ITypeDiscoveryService.GetTypes(Type, Boolean) Metod

Definition

Hämtar listan över tillgängliga typer.

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

Parametrar

baseType
Type

Den bastyp som ska matchas. Kan vara null.

excludeGlobalTypes
Boolean

Anger om typer från alla refererade sammansättningar ska kontrolleras.

Returer

En samling typer som matchar de villkor som anges av baseType och excludeGlobalTypes.

Kommentarer

Om baseType är nullreturneras alla typer. Annars returneras endast typer som härletts från den angivna bastypen. Om excludeGlobalTypes är falsekontrolleras typer från alla refererade sammansättningar. Annars kontrolleras endast typer från icke-global sammansättningscache (GAC) som refereras till sammansättningar. Mer information finns i Arbeta med sammansättningar och global sammansättningscache.

Gäller för

Se även