共用方式為


IVsDataProvider.GetType 方法 (String)

解決特定提供者型別名稱為其對應的 Type 表示。

命名空間:  Microsoft.VisualStudio.Data.Core
組件:  Microsoft.VisualStudio.Data.Core (在 Microsoft.VisualStudio.Data.Core.dll 中)

語法

'宣告
Function GetType ( _
    typeName As String _
) As Type
Type GetType(
    string typeName
)
Type^ GetType(
    String^ typeName
)
abstract GetType : 
        typeName:string -> Type 
function GetType(
    typeName : String
) : Type

參數

傳回值

型別:System.Type
表示型別從指定的型別名稱解析的 Type 物件,則為,如果有找到,否則, nullNull 參照 (即 Visual Basic 中的 Nothing)。

例外狀況

例外狀況 條件
ArgumentNullException

typeName 參數為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

[<ANY>]

DDEX 提供者的 GetType 實作擲回例外狀況。

備註

這個方法 GetType 方法的委派,並將 Empty 做為 source 參數的值。

.NET Framework 安全性

請參閱

參考

IVsDataProvider 介面

GetType 多載

Microsoft.VisualStudio.Data.Core 命名空間