OperationCollection::Contains Method (Operation^)

 

Returns a value indicating whether the specified Operation is a member of the OperationCollection.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
bool Contains(
	Operation^ operation
)

Parameters

operation
Type: System.Web.Services.Description::Operation^

The Operation for which to check collection membership.

Return Value

Type: System::Boolean

true if operation is a member of the OperationCollection; otherwise, false.

The following example demonstrates the use of the Contains method.

if ( myOperationCollection->Contains( myOperation ) == true )
{
   Console::WriteLine( "The index of the added 'myOperation' operation is : {0}", myOperationCollection->IndexOf( myOperation ) );
}

.NET Framework
Available since 1.1
Return to top
Show: