Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Namespace:   System.Data.OleDb
Assembly:  System.Data (in System.Data.dll)

public:
property bool PersistSecurityInfo {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

The 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft