Compartir a través de


IVsDataProvider.CreateObject (Método) (Type)

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

Espacio de nombres:  Microsoft.VisualStudio.Data.Core
Ensamblado:  Microsoft.VisualStudio.Data.Core (en Microsoft.VisualStudio.Data.Core.dll)

Sintaxis

'Declaración
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

Parámetros

  • objType
    Tipo: Type

    DDEX 支持实体的类型。

Valor devuelto

Tipo: Object
由 DDEX 提供程序实现指定的 DDEX 支持实体的实例。

Excepciones

Excepción Condición
DataProviderException

提供程序不支持 DDEX 支持实体,或支持实体的新实例化的实例引发了异常,因为调用 CreateInstance 的方法通过反射或通过 DDEX 提供程序的 CreateObject 不合格的默认或客户端对象的实现的某个方法实现或创建一个 (如果有)。

Comentarios

CreateObject 方法的委托,该方法将 Empty 作为源参数值。

Seguridad de .NET Framework

Vea también

Referencia

IVsDataProvider Interfaz

CreateObject (Sobrecarga)

Microsoft.VisualStudio.Data.Core (Espacio de nombres)