SqlConnectionStringBuilder.PersistSecurityInfo Property


Gets or sets a Boolean value that indicates if security-sensitive information, such as the password, is not returned as part of the connection if the connection is open or has ever been in an open state.

 property bool PersistSecurityInfo { bool get(); void set(bool value); };
public bool PersistSecurityInfo { get; set; }
member this.PersistSecurityInfo : bool with get, set
Public Property PersistSecurityInfo As Boolean

Property Value


The value of the PersistSecurityInfo property, or false if none has been supplied.


This property corresponds to the "Persist Security Info" and "persistsecurityinfo" keys within the connection string.

Applies to

See also