Export (0) Print
Expand All

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)

public SecureString SecureConnectionString { get; set; }

Property Value

Type: System.Security.SecureString
A SecureString value that specifies an encrypted connection string.

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.

Community Additions

© 2015 Microsoft