共用方式為


DataConnectionProperties.ShouldPersistProperty(String) Method

Definition

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.

Applies to