OperationMessageCollection.Remove メソッド
OperationMessageCollection から、最初に出現する指定した OperationMessage を削除します。
Public Sub Remove( _
ByVal operationMessage As OperationMessage _)
[C#]
public void Remove(OperationMessageoperationMessage);
[C++]
public: void Remove(OperationMessage* operationMessage);
[JScript]
public function Remove(
operationMessage : OperationMessage);
パラメータ
- operationMessage
コレクションから削除する OperationMessage 。
解説
このメソッドはリニア サーチを実行します。したがって、平均検索時間は Count に比例します。
削除された OperationMessage の後続の要素は、空白になった場所に上に詰めて移動します。
使用例
myOperationMessageCollection.Remove(myInputOperationMessage)
' Display Flow, Input, and Output after removing.
DisplayFlowInputOutput(myOperationMessageCollection, "Remove")
' Insert the message at index 0 in the collection.
myOperationMessageCollection.Insert(0, myInputOperationMessage)
' Display Flow, Input, and Output after inserting.
DisplayFlowInputOutput(myOperationMessageCollection, "Insert")
[C#]
myOperationMessageCollection.Remove(myInputOperationMessage);
// Display Flow, Input, and Output after removing.
DisplayFlowInputOutput(myOperationMessageCollection, "Remove");
// Insert the message at index 0 in the collection.
myOperationMessageCollection.Insert(0, myInputOperationMessage);
// Display Flow, Input, and Output after inserting.
DisplayFlowInputOutput(myOperationMessageCollection, "Insert");
[C++]
myOperationMessageCollection->Remove(myInputOperationMessage);
// Display Flow, Input, and Output after removing.
DisplayFlowInputOutput(myOperationMessageCollection, S"Remove");
// Insert the message at index 0 in the collection.
myOperationMessageCollection->Insert(0, myInputOperationMessage);
// Display Flow, Input, and Output after inserting.
DisplayFlowInputOutput(myOperationMessageCollection, S"Insert");
[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 ファミリ
参照
OperationMessageCollection クラス | OperationMessageCollection メンバ | System.Web.Services.Description 名前空間