DataSourceSpecializer.CreateObject(Guid, Type) Method

Definition

Creates a DDEX-provider implemented object of the given type that is specialized for the specified data source.

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

Parameters

dataSource
Guid

GUID of the data source for which the provider is specialized.

objType
Type

Data type of the provider object.

Returns

Returns a specialized object of specified type.

Exceptions

The data source specified with the dataSource parameter is not a registered DDEX data source.

Applies to