_Type.GetNestedTypes _Type.GetNestedTypes _Type.GetNestedTypes _Type.GetNestedTypes Method

定义

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

重载

GetNestedTypes() GetNestedTypes() GetNestedTypes() GetNestedTypes()

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

GetNestedTypes(BindingFlags) GetNestedTypes(BindingFlags) GetNestedTypes(BindingFlags) GetNestedTypes(BindingFlags)

为 COM 对象提供对 GetNestedTypes(BindingFlags) 方法的版本无关的访问,并使用指定绑定约束搜索嵌套在当前 Type 中的类型。Provides COM objects with version-independent access to the GetNestedTypes(BindingFlags) method, and searches for the types nested within the current Type, using the specified binding constraints.

注解

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

方法获取嵌套在当前Type中的类型。 Type.GetNestedTypesThe Type.GetNestedTypes method gets the types nested within the current Type.

GetNestedTypes() GetNestedTypes() GetNestedTypes() GetNestedTypes()

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

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

返回

Type[]

表示嵌套在当前 Type 中的所有类型的 Type 对象数组。An array of Type objects representing all the types nested within the current Type.

-or- 如果没有嵌套在当前 Type 中的类型,则为 Type 类型的空数组。An empty array of type Type, if no types are nested within the current Type.

注解

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

方法返回嵌套在当前Type中的所有类型。 Type.GetNestedTypesThe Type.GetNestedTypes method returns all the types nested within the current Type.

GetNestedTypes(BindingFlags) GetNestedTypes(BindingFlags) GetNestedTypes(BindingFlags) GetNestedTypes(BindingFlags)

为 COM 对象提供对 GetNestedTypes(BindingFlags) 方法的版本无关的访问,并使用指定绑定约束搜索嵌套在当前 Type 中的类型。Provides COM objects with version-independent access to the GetNestedTypes(BindingFlags) method, and searches for the types nested within the current Type, using the specified binding constraints.

public:
 cli::array <Type ^> ^ GetNestedTypes(System::Reflection::BindingFlags bindingAttr);
public Type[] GetNestedTypes (System.Reflection.BindingFlags bindingAttr);
abstract member GetNestedTypes : System.Reflection.BindingFlags -> Type[]
Public Function GetNestedTypes (bindingAttr As BindingFlags) As Type()

参数

bindingAttr
BindingFlags BindingFlags BindingFlags BindingFlags

一个位屏蔽,由一个或多个指定搜索执行方式的 BindingFlags 组成。A bitmask comprised of one or more BindingFlags that specify how the search is conducted.

-or- 零,以返回 nullZero, to return null.

返回

Type[]

Type 对象数组,表示当前 Type 中嵌套的与指定的绑定约束匹配的所有类型。An array of Type objects representing all the types nested within the current Type that match the specified binding constraints.

-or- 如果当前 Type 中未嵌套任何类型,或者如果没有一个嵌套类型与绑定约束匹配,则为类型 Type 的空数组。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.

注解

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

适用于