AdoDotNetProviderObjectFactory.CreateObject Method

Supports creation of the DataConnectionProperties and DataConnectionSupport types.

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

Syntax

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

returnValue = instance.CreateObject(objType)
public override Object CreateObject(
    Type objType
)
public:
virtual Object^ CreateObject(
    Type^ objType
) override
public override function CreateObject(
    objType : Type
) : Object

Parameters

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.

Permissions

See Also

Reference

AdoDotNetProviderObjectFactory Class

AdoDotNetProviderObjectFactory Members

Microsoft.VisualStudio.Data.AdoDotNet Namespace

CreateObject

AdoDotNetProviderObjectFactory