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.GuidGUID specifying a DDEX provider.
connectionString
Type: System.StringA connection string recognized by the data provider.
encryptedString
Type: System.BooleanBoolean 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.