Partager via


DataConnectionDialog.LoadExistingConfiguration Method

Configures the Data Connection dialog box with the specified existing DDEX provider and connection string, deriving the correct data source where possible.

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

Syntax

'Declaration
Public MustOverride Sub LoadExistingConfiguration ( _
    provider As Guid, _
    connectionString As String, _
    encryptedString As Boolean _
)
public abstract void LoadExistingConfiguration(
    Guid provider,
    string connectionString,
    bool encryptedString
)
public:
virtual void LoadExistingConfiguration(
    Guid provider, 
    String^ connectionString, 
    bool encryptedString
) abstract
abstract LoadExistingConfiguration : 
        provider:Guid * 
        connectionString:string * 
        encryptedString:bool -> unit
public abstract function LoadExistingConfiguration(
    provider : Guid, 
    connectionString : String, 
    encryptedString : boolean
)

Parameters

  • provider
    Type: System.Guid

    GUID specifying a DDEX provider.

  • connectionString
    Type: System.String

    A connection string recognized by the data provider.

  • encryptedString
    Type: System.Boolean

    Boolean indication whether the connection string parameter is encrypted.

Exceptions

Exception Condition
ArgumentNullException

The provider is an empty GUID and/or connectionString is null.

ArgumentException

The specified provider is unknown to the dialog.

Remarks

This is a convenience method for loading existing connection information into the Data Connection dialog box. It is particular useful for a reentry scenario, where existing connection information is to be modified.

.NET Framework Security

See Also

Reference

DataConnectionDialog Class

Microsoft.VisualStudio.Data Namespace