ConnectionSettings.SecureConnectionString Property
Gets or sets an encrypted version of the connection string.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)
Syntax
'Deklaracja
<BrowsableAttribute(False)> _
Public Property SecureConnectionString As SecureString
[BrowsableAttribute(false)]
public SecureString SecureConnectionString { get; set; }
[BrowsableAttribute(false)]
public:
property SecureString^ SecureConnectionString {
SecureString^ get ();
void set (SecureString^ value);
}
/** @property */
public SecureString get_SecureConnectionString ()
/** @property */
public void set_SecureConnectionString (SecureString value)
public function get SecureConnectionString () : SecureString
public function set SecureConnectionString (value : SecureString)
Property Value
A SecureString value that specifies an encrypted connection string.
Remarks
If this property is explicitly set, all properties in the ServerConnection object will be populated to reflect the values in the supplied connection string.
If you attempt to set this property when the connection cannot be changed, a ConnectionCannotBeChangedException exception is thrown.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.