DataProvider.CreateObject 方法

定义

重载

CreateObject(Type)

创建特定对象类型的 DDEX 提供程序实现。

CreateObject(Guid, Type)

创建新的 DDEX 提供程序实现的对象,该对象最好针对指定的数据源和指定的类型进行定制。

CreateObject(Type)

创建特定对象类型的 DDEX 提供程序实现。

public:
 System::Object ^ CreateObject(Type ^ objType);
public object CreateObject (Type objType);
member this.CreateObject : Type -> obj
Public Function CreateObject (objType As Type) As Object

参数

objType
Type

要创建的对象的类型。

返回

Object

返回指定的对象类型。

例外

objType 参数为 null。

适用于

CreateObject(Guid, Type)

创建新的 DDEX 提供程序实现的对象,该对象最好针对指定的数据源和指定的类型进行定制。

public:
 abstract System::Object ^ CreateObject(Guid dataSource, Type ^ objType);
public abstract object CreateObject (Guid dataSource, Type objType);
abstract member CreateObject : Guid * Type -> obj
Public MustOverride Function CreateObject (dataSource As Guid, objType As Type) As Object

参数

dataSource
Guid

DDEX 数据源 GUID。

objType
Type

要创建的对象的数据类型。

返回

Object

返回所请求的类型的新的 DDEX 提供程序实现的对象。

例外

objType 参数为 null。

适用于