OleDbConnectionStringBuilder::Remove Method (String^)
Removes the entry with the specified key from the OleDbConnectionStringBuilder instance.
Assembly: System.Data (in System.Data.dll)
Parameters
- keyword
-
Type:
System::String^
The key of the key/value pair to be removed from the connection string in this OleDbConnectionStringBuilder.
Return Value
Type: System::Booleantrue if the key existed within the connection string and was removed, false if the key did not exist.
| Exception | Condition |
|---|---|
| ArgumentNullException | keyword is null (Nothing in Visual Basic). |
Because the Remove method returns a value that indicates its success, it is not required to look for the existence of a key before trying to remove the key/value pair from the OleDbConnectionStringBuilder instance.
The following example creates a OleDbConnectionStringBuilder and demonstrates the behavior of the Remove method.
Available since 2.0