OperationBindingCollection.Contains Method
Returns a value indicating whether the specified OperationBinding is a member of the OperationBindingCollection.
[Visual Basic] Public Function Contains( _ ByVal bindingOperation As OperationBinding _ ) As Boolean [C#] public bool Contains( OperationBinding bindingOperation ); [C++] public: bool Contains( OperationBinding* bindingOperation ); [JScript] public function Contains( bindingOperation : OperationBinding ) : Boolean;
Parameters
- bindingOperation
- The OperationBinding for which to check collection membership.
Return Value
true if the bindingOperation parameter is a member of the OperationBindingCollection; otherwise, false.
Example
[Visual Basic, C#, C++] The following example demonstrates the use of the Contains method.
[Visual Basic] ' Check for the Add OperationBinding in the collection. Dim contains As Boolean = _ myOperationBindingCollection.Contains(addOperationBinding) Console.WriteLine(ControlChars.NewLine & _ "Whether the collection contains the Add " & _ "OperationBinding : " & contains.ToString()) [C#] // Check for the Add OperationBinding in the collection. bool contains = myOperationBindingCollection.Contains (addOperationBinding); Console.WriteLine("\nWhether the collection contains the Add " + "OperationBinding : " + contains); [C++] // Check for the Add OperationBinding in the collection. bool contains = myOperationBindingCollection->Contains(addOperationBinding); Console::WriteLine( S"\nWhether the collection contains the Add OperationBinding : {0}", __box(contains));
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
OperationBindingCollection Class | OperationBindingCollection Members | System.Web.Services.Description Namespace