共用方式為


AdoDotNetConnectionProperties.Reset Method

Definition

Overloads

Reset()

Resets a connection property to its initial value and raises the PropertyChanged event.

Reset(String)

Removes the given property from the connection string and raises the PropertyChanged event.

Reset()

Resets a connection property to its initial value and raises the PropertyChanged event.

public:
 virtual void Reset();
public virtual void Reset ();
abstract member Reset : unit -> unit
override this.Reset : unit -> unit
Public Overridable Sub Reset ()

Implements

Applies to

Reset(String)

Removes the given property from the connection string and raises the PropertyChanged event.

public:
 virtual bool Reset(System::String ^ key);
public virtual bool Reset (string key);
abstract member Reset : string -> bool
override this.Reset : string -> bool
Public Overridable Function Reset (key As String) As Boolean

Parameters

key
String

The property name that is to be removed.

Returns

true if the property is successfully removed; false if the property does not exist.

Implements

Applies to