次の方法で共有


SoapHeaderCollection.Add メソッド

SoapHeaderSoapHeaderCollection に追加します。

Public Function Add( _
   ByVal header As SoapHeader _) As Integer
[C#]
public int Add(SoapHeaderheader);
[C++]
public: int Add(SoapHeader* header);
[JScript]
public function Add(
   header : SoapHeader) : int;

パラメータ

戻り値

SoapHeader が挿入された位置。

使用例

 
mySoapHeader = New MySoapHeader()
mySoapHeader.text = "This is the second SOAP header"
mySoapHeaderCollection.Add(mySoapHeader)

[C#] 
mySoapHeader = new MySoapHeader();
mySoapHeader.text = "This is the second SOAP header";
mySoapHeaderCollection.Add(mySoapHeader);

[C++] 
mySoapHeader = new MySoapHeader();
mySoapHeader->text = S"This is the second SOAP header";
mySoapHeaderCollection->Add(mySoapHeader);

[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 ファミリ, .NET Compact Framework - Windows CE .NET

参照

SoapHeaderCollection クラス | SoapHeaderCollection メンバ | System.Web.Services.Protocols 名前空間 | Add | SoapHeader | IList