次の方法で共有


OperationBindingCollection.Remove(OperationBinding) メソッド

定義

OperationBinding 内で最初に見つかった指定の OperationBindingCollection を削除します。

public:
 void Remove(System::Web::Services::Description::OperationBinding ^ bindingOperation);
public void Remove (System.Web.Services.Description.OperationBinding bindingOperation);
member this.Remove : System.Web.Services.Description.OperationBinding -> unit
Public Sub Remove (bindingOperation As OperationBinding)

パラメーター

bindingOperation
OperationBinding

コレクションから削除する OperationBinding

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

// Get the OperationBinding of the Add operation from the collection.
OperationBinding^ myOperationBinding = myOperationBindingCollection[ 3 ];

// Remove the OperationBinding of the Add operation from
// the collection.
myOperationBindingCollection->Remove( myOperationBinding );
Console::WriteLine( "\nRemoved the OperationBinding of the "
"Add operation from the collection." );
// Get the OperationBinding of the Add operation from the collection.
OperationBinding myOperationBinding =
   myOperationBindingCollection[3];

// Remove the OperationBinding of the Add operation from
// the collection.
myOperationBindingCollection.Remove(myOperationBinding);
Console.WriteLine("\nRemoved the OperationBinding of the " +
   "Add operation from the collection.");
' Get the OperationBinding of the Add operation from the collection.
Dim myOperationBinding As OperationBinding = _
   myOperationBindingCollection(3)

' Remove the OperationBinding of the 'Add' operation from
' the collection.
myOperationBindingCollection.Remove(myOperationBinding)
Console.WriteLine(ControlChars.NewLine & _
   "Removed the OperationBinding of the " & _
   "Add operation from the collection.")

注釈

このメソッドは線形検索を実行します。したがって、平均実行時間は に比例します Count

削除された OperationBinding 後に続く要素は、空いた場所を占有するために上に移動します。

適用対象