Share via


IVsDataProvider.CreateObject Method (Guid, Type)

Creates an instance of the specified DDEX support entity for the specified DDEX data source that is implemented by the DDEX provider.

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

Syntax

'Declaration
Function CreateObject ( _
    source As Guid, _
    objType As Type _
) As Object
Object CreateObject(
    Guid source,
    Type objType
)
Object^ CreateObject(
    Guid source, 
    Type^ objType
)
abstract CreateObject : 
        source:Guid * 
        objType:Type -> Object
function CreateObject(
    source : Guid, 
    objType : Type
) : Object

Parameters

  • source
    Type: System.Guid

    An identifier of a DDEX data source, or Empty for no specific data source.

  • objType
    Type: System.Type

    A type of DDEX support entity.

Return Value

Type: System.Object
An instance of the specified DDEX support entity for the specified DDEX data source that is implemented by the DDEX provider.

Exceptions

Exception Condition
DataProviderException

The DDEX provider does not support the support entity, or instantiation of a new instance of the support entity threw an exception, whether by way of a CreateInstance call through reflection or through the DDEX provider’s CreateObject method implementation, or creation of the default or client object implementation (if there is one) failed.

Remarks

This method delegates to the CreateObject method, passing Object as the TSite generic parameter value and nulla null reference (Nothing in Visual Basic) as the site parameter.

.NET Framework Security

See Also

Reference

IVsDataProvider Interface

CreateObject Overload

Microsoft.VisualStudio.Data.Core Namespace