IVsDataProvider.CreateObject 方法 (Type)

创建指定的DDEX的实例支持由DDEX提供程序实现的实体。

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

语法

声明
Function CreateObject ( _
    objType As Type _
) As Object
Object CreateObject(
    Type objType
)
Object^ CreateObject(
    Type^ objType
)
abstract CreateObject : 
        objType:Type -> Object 
function CreateObject(
    objType : Type
) : Object

参数

  • objType
    类型:System.Type
    DDEX的类型支持实体。

返回值

类型:System.Object
指定的DDEX的实例支持由DDEX提供程序实现的实体。

异常

异常 条件
DataProviderException

DDEX提供程序不支持对实体,或支持实体的新实例的实例引发了异常,还是 CreateInstance 的方式调用通过反射或通过DDEX提供程序的 CreateObject 方法失败的默认值或客户端对象的实现的实现或创建(如果有)。

备注

CreateObject 方法的此方法委托,通过 Empty 作为源参数值。

.NET Framework 安全性

请参见

参考

IVsDataProvider 接口

CreateObject 重载

Microsoft.VisualStudio.Data.Core 命名空间