ערוך

שתף באמצעות


EntityConnectionStringBuilder.Remove(String) Method

Definition

Removes the entry with the specified key from the EntityConnectionStringBuilder instance.

public:
 override bool Remove(System::String ^ keyword);
public override bool Remove (string keyword);
override this.Remove : string -> bool
Public Overrides Function Remove (keyword As String) As Boolean

Parameters

keyword
String

The key of the keyword/value pair to be removed from the connection string in this EntityConnectionStringBuilder.

Returns

true if the key existed in the connection string and was removed; false if the key did not exist.

Exceptions

keyword is null (Nothing in Visual Basic)

Remarks

Because the Remove method returns a value that indicates its success, it is not required to look for a key before trying to remove the keyword/value pair from the EntityConnectionStringBuilder instance.

Applies to

See also