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

参数

  • typeName
    类型:System.String
    一个提供程序特定的类型名称。

返回值

类型: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 命名空间