SqlConnectionStringBuilder.PersistSecurityInfo Property

Definition

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.

public bool PersistSecurityInfo { get; set; }
member this.PersistSecurityInfo : bool with get, set
Public Property PersistSecurityInfo As Boolean

Property Value

Boolean

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

Remarks

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

Resetting the connection string resets all connection string values including the password.

Applies to