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: