DataConnectionFactory.MakeDataConnectionFrom(Guid, Object) Method

Definition

Creates a new instance of the DataConnection class for the specified provider from an existing underlying provider object.

public:
 Microsoft::VisualStudio::Data::DataConnection ^ MakeDataConnectionFrom(Guid provider, System::Object ^ providerObj);
public Microsoft.VisualStudio.Data.DataConnection MakeDataConnectionFrom (Guid provider, object providerObj);
member this.MakeDataConnectionFrom : Guid * obj -> Microsoft.VisualStudio.Data.DataConnection
Public Function MakeDataConnectionFrom (provider As Guid, providerObj As Object) As DataConnection

Parameters

provider
Guid

The unique identifier of a DDEX provider.

providerObj
Object

An existing underlying provider object.

Returns

Returns a DataConnection object instance.

Exceptions

The providerObj parameter is null.

The provider is not a registered DDEX provider.

Applies to