IVsDataConnectionFactory.MakeConnectionFrom Method

Initializes a new instance of the IVsDataConnection class for the specified provider from an existing underlying provider object.

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

Syntax

'Declaration
Function MakeConnectionFrom ( _
    provider As Guid, _
    providerObj As Object _
) As IVsDataConnection
IVsDataConnection MakeConnectionFrom(
    Guid provider,
    Object providerObj
)
IVsDataConnection^ MakeConnectionFrom(
    Guid provider, 
    Object^ providerObj
)
abstract MakeConnectionFrom : 
        provider:Guid * 
        providerObj:Object -> IVsDataConnection
function MakeConnectionFrom(
    provider : Guid, 
    providerObj : Object
) : IVsDataConnection

Parameters

  • provider
    Type: System.Guid

    The unique identifier of a DDEX provider.

  • providerObj
    Type: System.Object

    An existing underlying provider object.

Return Value

Type: Microsoft.VisualStudio.Data.Services.IVsDataConnection
A IVsDataConnection object representing a data connection.

Exceptions

Exception Condition
ArgumentNullException

The providerObj parameter is nulla null reference (Nothing in Visual Basic).

ArgumentException

The provider is not a registered DDEX provider.

Remarks

Other exceptions that occur indicate a provider-specific error during attachment of the provider connection object.

.NET Framework Security

See Also

Reference

IVsDataConnectionFactory Interface

Microsoft.VisualStudio.Data.Services Namespace

DataConnectionSupport