TypeDescriptor.GetReflectionType 方法

定義

傳回可用來執行反映的 Type

多載

GetReflectionType(Object)

傳回指定物件時可用來執行反映的 Type

GetReflectionType(Type)

傳回指定類別類型時可用來執行反映的 Type

GetReflectionType(Object)

來源:
TypeDescriptor.cs
來源:
TypeDescriptor.cs
來源:
TypeDescriptor.cs

傳回指定物件時可用來執行反映的 Type

public:
 static Type ^ GetReflectionType(System::Object ^ instance);
public static Type GetReflectionType (object instance);
static member GetReflectionType : obj -> Type
Public Shared Function GetReflectionType (instance As Object) As Type

參數

instance
Object

目標元件的執行個體。

傳回

指定物件的 Type

例外狀況

instancenull

備註

方法是 GetReflectionType 方法的 GetTypeDescriptor 低階版本。 GetReflectionType 通常當物件找不到任何自定義類型描述元時,用來對對對象執行標準反映。

另請參閱

適用於

GetReflectionType(Type)

來源:
TypeDescriptor.cs
來源:
TypeDescriptor.cs
來源:
TypeDescriptor.cs

傳回指定類別類型時可用來執行反映的 Type

public:
 static Type ^ GetReflectionType(Type ^ type);
public static Type GetReflectionType (Type type);
static member GetReflectionType : Type -> Type
Public Shared Function GetReflectionType (type As Type) As Type

參數

type
Type

目標元件的 Type

傳回

指定類別的 Type

例外狀況

typenull

備註

方法是 GetReflectionType 方法的 GetTypeDescriptor 低階版本。 GetReflectionType 通常當類別無法找到任何自定義類型描述元時,用來對類別執行標準反映。

另請參閱

適用於