Share via


DataProviderObjectFactory.CreateObject Method

Creates a data-provider-written object that implements the specified object type.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.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

    Data type of object to create.

Return Value

Type: System.Object
Returns an object of type specified by the objectType parameter, or nulla null reference (Nothing in Visual Basic) if the object type is not supported.

Remarks

There are four DDEX-support objects that you can create using the CreateObject method.

Objects that implement the other support entity interfaces are created using other means, such as indirectly through an object implementing one of the above classes or by specifying a managed type name or CLSID in an XML file.

.NET Framework Security

See Also

Reference

DataProviderObjectFactory Class

Microsoft.VisualStudio.Data Namespace