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.

OdbcParameterCollection::Contains Method (String^)

 

Gets a value indicating whether an OdbcParameter object with the specified parameter name exists in the collection.

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

public:
virtual bool Contains(
	String^ value
) override

Parameters

value
Type: System::String^

The name of the OdbcParameter object to find.

Return Value

Type: System::Boolean

true if the collection contains the parameter; otherwise, false.

The following example searches for an OdbcParameter with a given ParameterName within an OdbcParameterCollection. If the parameter exists, the example displays the name and index of the parameter. If the parameter does not exist, the example displays an error. This example assumes that an OdbcParameterCollection has already been created.

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

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