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
    类型:String

    一个提供程序特定的类型名称。

返回值

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