DataConnectionProperties.ShouldPersistProperty(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether a property should be persisted when building a connection string.
protected:
virtual bool ShouldPersistProperty(System::String ^ propertyName);
protected virtual bool ShouldPersistProperty (string propertyName);
abstract member ShouldPersistProperty : string -> bool
override this.ShouldPersistProperty : string -> bool
Protected Overridable Function ShouldPersistProperty (propertyName As String) As Boolean
Parameters
- propertyName
- String
The name of a property.
Returns
Returns false if the specified property is not recognized, is not set, or if it is set to the default value; otherwise, it returns true.
Exceptions
The Name
parameter is null.