DataSourceSpecializer.CreateObject(Guid, Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.