DataSourceSpecializer.GetType 方法 (Guid, String)

检索给定的类型定义类型名称和数据源GUID。

命名空间:  Microsoft.VisualStudio.Data
程序集:  Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)

语法

声明
Public Overridable Function GetType ( _
    dataSource As Guid, _
    typeName As String _
) As Type
public virtual Type GetType(
    Guid dataSource,
    string typeName
)
public:
virtual Type^ GetType(
    Guid dataSource, 
    String^ typeName
)
abstract GetType : 
        dataSource:Guid * 
        typeName:string -> Type 
override GetType : 
        dataSource:Guid * 
        typeName:string -> Type 
public function GetType(
    dataSource : Guid, 
    typeName : String
) : Type

参数

返回值

类型:System.Type
返回类型定义。

备注

此方法允许DDEX提供自定义动态位置引用类型的分辨率如XML文件。基类实现尝试查找将类型名称的逗号从其限定的程序集,并且,如果找到,调用与程序集限定符的 GetAssembly 方法,因此,如果找到,尝试从该程序集中检索该类型。否则它调用带有一个空字符串的 GetAssembly,因此,如果找到,尝试从获取此程序集中的类型。最后,如果仍未找到该类型,则调用标准 GetType 方法并返回此调用的结果。

.NET Framework 安全性

请参见

参考

DataSourceSpecializer 类

GetType 重载

Microsoft.VisualStudio.Data 命名空间