DesignerSerializationManager.GetType(String) 方法

定義

會得到指定的類型。

protected:
 virtual Type ^ GetType(System::String ^ typeName);
protected virtual Type GetType(string typeName);
override this.GetType : string -> Type
Protected Overridable Function GetType (typeName As String) As Type

參數

typeName
String

要取回的類型名稱。

傳回

請求的型別,或 null 是無法解析型別。

備註

GetType 方法會搜尋服務提供者, ITypeResolutionService 若有,會委派給該服務來解析類型。 若 ITypeResolutionService 無法取得, GetType 則會呼叫該 Object.GetType 方法。

適用於