Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

OdbcConnectionStringBuilder::Remove Method (String^)

 

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

Namespace:   System.Data.Odbc
Assembly:  System.Data (in System.Data.dll)

public:
virtual bool Remove(
	String^ keyword
) override

Parameters

keyword
Type: System::String^

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

Return Value

Type: System::Boolean

true 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 OdbcConnectionStringBuilder instance.

The following example creates an OdbcConnectionStringBuilder instance and demonstrates the behavior of the Remove method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft