Share via


DataProviderObjectFactory.CreateObject Method

Creates an instance of the specified DDEX support entity implemented by the DDEX provider.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public MustOverride Function CreateObject ( _
    objType As Type _
) As Object
public abstract Object CreateObject(
    Type objType
)
public:
virtual Object^ CreateObject(
    Type^ objType
) abstract
abstract CreateObject : 
        objType:Type -> Object
public abstract function CreateObject(
    objType : Type
) : Object

Parameters

  • objType
    Type: System.Type

    A type of DDEX support entity.

Return Value

Type: System.Object
An instance of the specified DDEX support entity implemented by the DDEX provider, if the DDEX provider supports it; otherwise, nulla null reference (Nothing in Visual Basic).

Implements

IVsDataProviderObjectFactory.CreateObject(Type)

Remarks

A provider implements this method to return top-level support entities, that is, those normally created directly by a client as opposed to indirectly by querying a data connection for a service or creating a type referenced from a data support XML file.

DDEX support entities that you can create by using this method:

Objects that implement the other support entity interfaces are created by other means, such as indirectly by querying a data connection for a service or creating a type referenced from a data support XML file.

Notes to Inheritors

The derived class must override this method.

.NET Framework Security

See Also

Reference

DataProviderObjectFactory Class

Microsoft.VisualStudio.Data.Framework Namespace