DataSourceSpecializer.CreateObject(Guid, Type) 方法

定义

创建给定类型的 DDEX 实现的实现的对象,该对象专用于指定的数据源。

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

参数

dataSource
Guid

提供程序所针对的数据源的 GUID。

objType
Type

提供程序对象的数据类型。

返回

Object

返回指定类型的专用对象。

例外

使用参数指定的数据源 dataSource 不是已注册的 DDEX 数据源。

适用于