DataSourceSpecializer.CreateObject 方法

创建对指定的数据源专用给定类型的一DDEX提供程序实现的对象。

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

语法

声明
Public Overridable Function CreateObject ( _
    source As Guid, _
    objType As Type _
) As Object
public virtual Object CreateObject(
    Guid source,
    Type objType
)
public:
virtual Object^ CreateObject(
    Guid source, 
    Type^ objType
)
abstract CreateObject : 
        source:Guid * 
        objType:Type -> Object 
override CreateObject : 
        source:Guid * 
        objType:Type -> Object 
public function CreateObject(
    source : Guid, 
    objType : Type
) : Object

参数

  • source
    类型:System.Guid
    该提供程序专用数据源的GUID。
  • objType
    类型:System.Type
    提供程序对象的数据类型。

返回值

类型:System.Object
指定类型的专用的对象。

实现

IVsDataSourceSpecializer.CreateObject(Guid, Type)

备注

对继承者的说明

此方法的基实现返回 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

DataSourceSpecializer 类

Microsoft.VisualStudio.Data.Framework 命名空间