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.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'宣言
Public Overridable Function CreateObject ( _
    source As Guid, _
    objType As Type _
) As Object
'使用
Dim instance As DataSourceSpecializer
Dim source As Guid
Dim objType As Type
Dim returnValue As Object

returnValue = instance.CreateObject(source, _
    objType)
public virtual Object CreateObject(
    Guid source,
    Type objType
)
public:
virtual Object^ CreateObject(
    Guid source, 
    Type^ objType
)
public function CreateObject(
    source : Guid, 
    objType : Type
) : Object

Parameters

  • source
    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

A specialized object of the specified type.

Implements

IVsDataSourceSpecializer.CreateObject(Guid, Type)

Permissions

See Also

Reference

DataSourceSpecializer Class

DataSourceSpecializer Members

Microsoft.VisualStudio.Data.Framework Namespace