共用方式為


DataProvider.CreateObject Method

Definition

Overloads

CreateObject(Type)

Creates a DDEX provider implementation of a specific object type.

CreateObject(Guid, Type)

Creates a new DDEX provider-implemented object, preferably tailored for the specified data source, and of the specified type.

CreateObject(Type)

Creates a DDEX provider implementation of a specific object type.

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

Parameters

objType
Type

The type of object to create.

Returns

Returns the specified object type.

Exceptions

The objType parameter is null.

Applies to

CreateObject(Guid, Type)

Creates a new DDEX provider-implemented object, preferably tailored for the specified data source, and of the specified type.

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

Parameters

dataSource
Guid

A DDEX data source GUID.

objType
Type

Data type of the object to create.

Returns

Returns a new DDEX provider-implemented object of the requested type.

Exceptions

The objType parameter is null.

Applies to