Partager via


IVsDataConnectionDialog.EncryptedConnectionString Property

Gets or sets encrypted connection information for the dialog box for the specified data provider.

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

Syntax

'Declaration
Property EncryptedConnectionString As String
string EncryptedConnectionString { get; set; }
property String^ EncryptedConnectionString {
    String^ get ();
    void set (String^ value);
}
abstract EncryptedConnectionString : string with get, set
function get EncryptedConnectionString () : String 
function set EncryptedConnectionString (value : String)

Property Value

Type: System.String
Returns encrypted connection information represented by the dialog box for the selected provider.

Remarks

Normally, a client sets this property to specify an initial configuration on the dialog box and then retrieve it after the dialog has closed to pick up the information entered by the user.

The encrypted connection string contains all information, including passwords if they are chosen to be saved. The encryption used is the regular data protection API (DPAPI), which can be decrypted only by the user who encrypted it, and on the same computer. Thus, this string is most useful within a session of Visual Studio, or when persisted to a user-specific file that is never copied to a different computer.

.NET Framework Security

See Also

Reference

IVsDataConnectionDialog Interface

Microsoft.VisualStudio.Data.Services Namespace

DisplayConnectionString