ITypeProvider.GetType 方法

定義

取得具名實體的 Type

多載

GetType(String)

取得具名實體的 Type

GetType(String, Boolean)

取得具名實體的 Type

GetType(String)

取得具名實體的 Type

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

參數

name
String

包含實體名稱的字串。

傳回

具名實體的 Type

適用於

GetType(String, Boolean)

取得具名實體的 Type

public:
 Type ^ GetType(System::String ^ name, bool throwOnError);
public Type GetType (string name, bool throwOnError);
abstract member GetType : string * bool -> Type
Public Function GetType (name As String, throwOnError As Boolean) As Type

參數

name
String

包含實體名稱的字串。

throwOnError
Boolean

指出如果無法解析 name,是否要擲回例外狀況的值。

傳回

具名實體的 Type

適用於