DataConnectionDialog.EncryptedConnectionString Property

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

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

Syntax

'宣告
Public MustOverride Property EncryptedConnectionString As String
    Get
    Set
public abstract string EncryptedConnectionString { get; set; }
public:
virtual property String^ EncryptedConnectionString {
    String^ get () abstract;
    void set (String^ value) abstract;
}
abstract EncryptedConnectionString : string with get, set
abstract function get EncryptedConnectionString () : String
abstract function set EncryptedConnectionString (value : String)

Property Value

Type: System.String
Returns encrypted connection information represented by the dialog 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 only be decrypted by the user that encrypted it, and on the same machine. 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 machine.

.NET Framework Security

See Also

Reference

DataConnectionDialog Class

Microsoft.VisualStudio.Data Namespace

DisplayConnectionString