AdoDotNetProviderObjectFactory.CreateObject 方法

支持 DataConnectionPropertiesDataConnectionSupport 类型的创建。

命名空间:  Microsoft.VisualStudio.Data.AdoDotNet
程序集:  Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)

语法

声明
Public Overrides Function CreateObject ( _
    objType As Type _
) As Object
public override Object CreateObject(
    Type objType
)
public:
virtual Object^ CreateObject(
    Type^ objType
) override
abstract CreateObject : 
        objType:Type -> Object 
override CreateObject : 
        objType:Type -> Object 
public override function CreateObject(
    objType : Type
) : Object

参数

  • objType
    类型:System.Type
    创建对象的数据类型。

返回值

类型:System.Object
如果目标类型,不支持返回 objectType 参数指定类型的对象或 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

AdoDotNetProviderObjectFactory 类

Microsoft.VisualStudio.Data.AdoDotNet 命名空间

CreateObject

AdoDotNetProviderObjectFactory