Share via


DataConnection.EncryptedConnectionString Property

Retrieves or sets encrypted connection information in the form of a DPAPI-encrypted, provider-specific string.

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

Syntax

'Declaration
Public MustOverride Property EncryptedConnectionString As String
'Usage
Dim instance As DataConnection 
Dim value As String 

value = instance.EncryptedConnectionString

instance.EncryptedConnectionString = value
public abstract string EncryptedConnectionString { get; set; }
public:
virtual property String^ EncryptedConnectionString {
    String^ get () abstract;
    void set (String^ value) abstract;
}
public abstract function get EncryptedConnectionString () : String 
public abstract function set EncryptedConnectionString (value : String)

Property Value

Type: System.String
Returns encrypted connection information in the form of a DPAPI_encrypted, provider-specific string.

Remarks

The encrypted connection string contains all information, including passwords (when 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.

For information about manipulating nonsensitive information, see DisplayConnectionString.

.NET Framework Security

See Also

Reference

DataConnection Class

DataConnection Members

Microsoft.VisualStudio.Data Namespace

DataProtection