SoapHeaderCollection.Add メソッド
SoapHeader を SoapHeaderCollection に追加します。
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;
パラメータ
- header
SoapHeaderCollection に追加する SoapHeader 。
戻り値
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