次の方法で共有


OperationBindingCollection.Add メソッド

指定した OperationBindingOperationBindingCollection の末尾に追加します。

Public Function Add( _
   ByVal bindingOperation As OperationBinding _) As Integer
[C#]
public int Add(OperationBindingbindingOperation);
[C++]
public: int Add(OperationBinding* bindingOperation);
[JScript]
public function Add(
   bindingOperation : OperationBinding) : int;

パラメータ

戻り値

bindingOperation パラメータが追加された、0 から始まるインデックス番号。

使用例

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

 
' Add the Add OperationBinding to the collection.
myOperationBindingCollection.Add(addOperationBinding)
Console.WriteLine(ControlChars.NewLine & _
   "Added the OperationBinding of the Add " & _
   "operation to the collection.")

[C#] 
// Add the Add OperationBinding to the collection.
myOperationBindingCollection.Add(addOperationBinding);
Console.WriteLine("\nAdded the OperationBinding of the Add" +
   " operation to the collection.");

[C++] 
// Add the Add OperationBinding to the collection.
myOperationBindingCollection->Add(addOperationBinding);
Console::WriteLine(S"\nAdded the OperationBinding of the Add"
   S" operation to 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 名前空間