_Assembly.GetTypes Method

Definition

为 COM 对象提供对 GetTypes() 方法的与版本无关的访问。Provides COM objects with version-independent access to the GetTypes() method.

public:
 cli::array <Type ^> ^ GetTypes();
public Type[] GetTypes ();
abstract member GetTypes : unit -> Type[]
Public Function GetTypes () As Type()

Returns

Type[]

类型 Type 的数组,其包含此程序集中定义的所有类型的对象。An array of type Type containing objects for all the types defined in this assembly.

Remarks

此方法用于从非托管代码访问托管类,不应从托管代码调用。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

GetTypes 方法获取此程序集中定义的类型。The GetTypes method gets the types defined in this assembly.

Applies to

See also