IVsDataConnectionDialog.LoadExistingConfiguration Method
Configures the Add Connection dialog box with the specified existing DDEX provider and connection string, deriving the correct data source when possible.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Déclaration
Sub LoadExistingConfiguration ( _
provider As Guid, _
connectionString As String, _
encryptedString As Boolean _
)
void LoadExistingConfiguration(
Guid provider,
string connectionString,
bool encryptedString
)
void LoadExistingConfiguration(
Guid provider,
String^ connectionString,
bool encryptedString
)
abstract LoadExistingConfiguration :
provider:Guid *
connectionString:string *
encryptedString:bool -> unit
function LoadExistingConfiguration(
provider : Guid,
connectionString : String,
encryptedString : boolean
)
Parameters
- provider
Type: System.Guid
A Guid object specifying a DDEX provider.
- connectionString
Type: System.String
A connection string recognized by the data provider.
- encryptedString
Type: System.Boolean
A Boolean value indicating whether the connection string parameter is encrypted.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The provider is an empty GUID and/or connectionString is nulla null reference (Nothing in Visual Basic). |
ArgumentException | The specified provider is unknown to the dialog box. |
Remarks
This method can be used to load existing connection information into the Add Connection dialog box. It is particularly useful for a re-entry scenario in which 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.