_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.

備註

這個方法是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。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.

備註

這個方法是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。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.

備註

這個方法是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

適用於