次の方法で共有


OperationBindingCollection.Remove メソッド

OperationBindingCollection から、最初に出現する指定した OperationBinding を削除します。

Public Sub Remove( _
   ByVal bindingOperation As OperationBinding _)
[C#]
public void Remove(OperationBindingbindingOperation);
[C++]
public: void Remove(OperationBinding* bindingOperation);
[JScript]
public function Remove(
   bindingOperation : OperationBinding);

パラメータ

解説

このメソッドはリニア サーチを実行します。したがって、平均検索時間は Count に比例します。

削除された OperationBinding の後ろにある要素は、前にずれて空白になった場所に移動します。

使用例

[Visual Basic, C#, C++] Remove メソッドを使用する例を次に示します。

 
' 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.")

[C#] 
// 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.");

[C++] 
// Get the OperationBinding of the Add operation from the collection.
OperationBinding* myOperationBinding =
   myOperationBindingCollection->Item[3];

// Remove the OperationBinding of the Add operation from
// the collection.
myOperationBindingCollection->Remove(myOperationBinding);
Console::WriteLine(S"\nRemoved the OperationBinding of the "
   S"Add operation from the collection.");

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

OperationBindingCollection クラス | OperationBindingCollection メンバ | System.Web.Services.Description 名前空間