Share via


DataSourceSpecializer.CreateObject Method

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

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public Overridable Function CreateObject ( _
    dataSource As Guid, _
    objType As Type _
) As Object
public virtual Object CreateObject(
    Guid dataSource,
    Type objType
)
public:
virtual Object^ CreateObject(
    Guid dataSource, 
    Type^ objType
)
abstract CreateObject : 
        dataSource:Guid * 
        objType:Type -> Object  
override CreateObject : 
        dataSource:Guid * 
        objType:Type -> Object
public function CreateObject(
    dataSource : Guid, 
    objType : Type
) : Object

Parameters

  • dataSource
    Type: System.Guid

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

  • objType
    Type: System.Type

    Data type of the provider object.

Return Value

Type: System.Object
Returns a specialized object of specified type.

Exceptions

Exception Condition
ArgumentException

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

.NET Framework Security

See Also

Reference

DataSourceSpecializer Class

Microsoft.VisualStudio.Data Namespace