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

'宣言
Public MustOverride Function CreateObject ( _
    objType As Type _
) As Object
'使用
Dim instance As DataProviderObjectFactory
Dim objType As Type
Dim returnValue As Object

returnValue = instance.CreateObject(objType)
public abstract Object CreateObject(
    Type objType
)
public:
virtual Object^ CreateObject(
    Type^ objType
) abstract
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 a 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.

Permissions

See Also

Reference

DataProviderObjectFactory Class

DataProviderObjectFactory Members

Microsoft.VisualStudio.Data Namespace