OperationMessageCollection.OnInsert メソッド
指定した 0 から始まるインデックス番号に OperationMessage を挿入するときに検証を実行します。
Overrides Protected Sub OnInsert( _
ByVal index As Integer, _ ByVal value As Object _)
[C#]
protected override void OnInsert(intindex,objectvalue);
[C++]
protected: void OnInsert(intindex,Object* value);
[JScript]
protected override function OnInsert(
index : int,value : Object);
パラメータ
- index
指定した OperationMessage を挿入する位置の、0 から始まるインデックス番号。 - value
OperationMessageCollection に追加される OperationMessage 。
例外
例外の種類 | 条件 |
---|---|
InvalidOperationException | Count が 2 より大きいです。
または コレクションに 2 番目の入力メッセージまたは出力メッセージを追加しようとしました。 |
解説
このメソッドは基本メソッドをオーバーライドして、コレクション メンバの数を 2 つ (OperationInput および OperationOutput) に制限します。
必要条件
プラットフォーム: 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 名前空間