OperationBindingCollection.Contains(OperationBinding) メソッド

定義

指定した OperationBindingOperationBindingCollection のメンバーかどうかを示す値を返します。

public:
 bool Contains(System::Web::Services::Description::OperationBinding ^ bindingOperation);
public bool Contains (System.Web.Services.Description.OperationBinding bindingOperation);
member this.Contains : System.Web.Services.Description.OperationBinding -> bool
Public Function Contains (bindingOperation As OperationBinding) As Boolean

パラメーター

bindingOperation
OperationBinding

コレクション メンバーシップを確認する対象の OperationBinding

戻り値

bindingOperation パラメーターが OperationBindingCollection のメンバーである場合は true。それ以外の場合は false

Contains メソッドの使用例を次に示します。

// Check for the Add OperationBinding in the collection.
bool contains = myOperationBindingCollection->Contains( addOperationBinding );
Console::WriteLine( "\nWhether the collection contains the Add OperationBinding : {0}", contains );
// Check for the Add OperationBinding in the collection.
bool contains = myOperationBindingCollection.Contains
   (addOperationBinding);
Console.WriteLine("\nWhether the collection contains the Add " +
   "OperationBinding : " + contains);
' 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())

適用対象