OleDbConnectionStringBuilder::PersistSecurityInfo Property
Gets or sets a Boolean value that indicates whether security-sensitive information, such as the password, is returned as part of the connection if the connection is open or has ever been in an open state.
Assembly: System.Data (in System.Data.dll)
Property Value
Type: System::BooleanThe value of the PersistSecurityInfo property, or false if none has been supplied.
This property corresponds to the "Persist Security Info" key within the connection string.
The following example works with the PersistSecurityInfo property in two ways. First, it assigns a value directly to the property, demonstrating the effect this action has on the resulting connection string. Then, the example clears the OleDbConnectionStringBuilder and assigns a complete connection string that contains a value for the "Persist Security Info" key. This step demonstrates that setting the value from the connection string modifies the PersistSecurityInfo property, as well.
Available since 2.0