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

Syntax

'Declaration
Public Overridable Function CreateObject ( _
    source As Guid, _
    objType As Type _
) As Object
public virtual Object CreateObject(
    Guid source,
    Type objType
)
public:
virtual Object^ CreateObject(
    Guid source, 
    Type^ objType
)
abstract CreateObject : 
        source:Guid * 
        objType:Type -> Object  
override CreateObject : 
        source:Guid * 
        objType:Type -> Object
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)

Remarks

Notes to Inheritors

The base implementation of this method returns nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

DataSourceSpecializer Class

Microsoft.VisualStudio.Data.Framework Namespace