_Type.GetNestedType _Type.GetNestedType _Type.GetNestedType _Type.GetNestedType Method

定義

為 COM 物件提供與版本無關的 GetNestedType 方法之存取權。Provides COM objects with version-independent access to the GetNestedType method.

多載

GetNestedType(String) GetNestedType(String) GetNestedType(String) GetNestedType(String)

為 COM 物件提供與版本無關的 GetNestedType(String) 方法之存取權。Provides COM objects with version-independent access to the GetNestedType(String) method.

GetNestedType(String, BindingFlags) GetNestedType(String, BindingFlags) GetNestedType(String, BindingFlags) GetNestedType(String, BindingFlags)

為 COM 物件提供與版本無關的 GetNestedType(String, BindingFlags) 方法之存取權。Provides COM objects with version-independent access to the GetNestedType(String, BindingFlags) method.

備註

這個方法會從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.GetNestedType方法會取得特定類型在目前的巢狀TypeThe Type.GetNestedType method gets a specific type nested within the current Type.

GetNestedType(String) GetNestedType(String) GetNestedType(String) GetNestedType(String)

為 COM 物件提供與版本無關的 GetNestedType(String) 方法之存取權。Provides COM objects with version-independent access to the GetNestedType(String) method.

public:
 Type ^ GetNestedType(System::String ^ name);
public Type GetNestedType (string name);
abstract member GetNestedType : string -> Type
Public Function GetNestedType (name As String) As Type

參數

name
String String String String

包含要取得之巢狀類型名稱的字串。The string containing the name of the nested type to get.

傳回

Type 物件,表示具有指定之名稱的公用巢狀型別 (如有找到);否則為 nullA Type object representing the public nested type with the specified name, if found; otherwise, null.

備註

這個方法會從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.GetNestedType方法會搜尋具有指定名稱的巢狀類型。The Type.GetNestedType method searches for the public nested type with the specified name.

GetNestedType(String, BindingFlags) GetNestedType(String, BindingFlags) GetNestedType(String, BindingFlags) GetNestedType(String, BindingFlags)

為 COM 物件提供與版本無關的 GetNestedType(String, BindingFlags) 方法之存取權。Provides COM objects with version-independent access to the GetNestedType(String, BindingFlags) method.

public:
 Type ^ GetNestedType(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public Type GetNestedType (string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetNestedType : string * System.Reflection.BindingFlags -> Type
Public Function GetNestedType (name As String, bindingAttr As BindingFlags) As Type

參數

name
String String String String

包含要取得之巢狀類型名稱的字串。The string containing the name of the nested type to get.

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 物件,表示符合指定之需求的巢狀型別 (如有找到);否則為 nullA Type object representing the nested type that matches the specified requirements, if found; otherwise, null.

備註

這個方法會從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.GetNestedType方法會搜尋指定的巢狀型別,使用指定的繫結條件約束。The Type.GetNestedType method searches for the specified nested type, using the specified binding constraints.

適用於