SoapHeaderCollection クラス
アセンブリ: System.Web.Services (system.web.services.dll 内)


<System.Web.Services.WebServiceBindingAttribute(Name := "MathSvcSoap", _ Namespace := "http://tempuri.org/")> _ Public Class MathSvc Inherits System.Web.Services.Protocols.SoapHttpClientProtocol Public mySoapHeaders() As SoapHeader <SoapHeaderAttribute("mySoapHeaders", _ Direction := SoapHeaderDirection.In), _ System.Web.Services.Protocols.SoapDocumentMethodAttribute( _ "http://tempuri.org/Add", _ Use := System.Web.Services.Description.SoapBindingUse.Literal, _ ParameterStyle := System.Web.Services.Protocols.SoapParameterStyle.Wrapped), _ MySoapExtensionAttribute()> _ Public Function Add(xValue As System.Single, yValue As System.Single) _ As System.Single Dim mySoapHeaderCollection As New SoapHeaderCollection() Dim mySoapHeader As MySoapHeader mySoapHeader = New MySoapHeader() mySoapHeader.text = "This is the first SOAP header" mySoapHeaderCollection.Add(mySoapHeader) mySoapHeader = New MySoapHeader() mySoapHeader.text = "This is the second SOAP header" mySoapHeaderCollection.Add(mySoapHeader) mySoapHeader = New MySoapHeader() mySoapHeader.text = "This header is inserted before the first header" mySoapHeaderCollection.Insert(0, mySoapHeader) mySoapHeaders = New MySoapHeader(mySoapHeaderCollection.Count-1) {} mySoapHeaderCollection.CopyTo(mySoapHeaders, 0) Dim results() As Object = _ Me.Invoke("Add", New Object() {xValue, yValue}) Return CType(results(0), System.Single) End Function 'Add <System.Diagnostics.DebuggerStepThroughAttribute()> _ Public Sub New() Me.Url = "http://localhost/MathSvc_SoapHeaderCollection.vb.asmx" End Sub 'New Public Function BeginAdd(xValue As System.Single, yValue As System.Single, _ callback As System.AsyncCallback, asyncState As Object) _ As System.IAsyncResult Return Me.BeginInvoke("Add", New Object() {xValue, yValue}, _ callback, asyncState) End Function 'BeginAdd Public Function EndAdd(asyncResult As System.IAsyncResult) As System.Single Dim results As Object() = Me.EndInvoke(asyncResult) Return CType(results(0), System.Single) End Function 'EndAdd End Class 'MathSvc
[System.Web.Services.WebServiceBindingAttribute(Name="MathSvcSoap", Namespace="http://tempuri.org/")] public class MathSvc : System.Web.Services.Protocols.SoapHttpClientProtocol { public SoapHeader[] mySoapHeaders; [SoapHeaderAttribute("mySoapHeaders", Direction=SoapHeaderDirection.In)] [System.Web.Services.Protocols.SoapDocumentMethodAttribute( "http://tempuri.org/Add", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] [MySoapExtensionAttribute()] public System.Single Add(System.Single xValue, System.Single yValue) { SoapHeaderCollection mySoapHeaderCollection = new SoapHeaderCollection(); MySoapHeader mySoapHeader; mySoapHeader = new MySoapHeader(); mySoapHeader.text = "This is the first SOAP header"; mySoapHeaderCollection.Add(mySoapHeader); mySoapHeader = new MySoapHeader(); mySoapHeader.text = "This is the second SOAP header"; mySoapHeaderCollection.Add(mySoapHeader); mySoapHeader = new MySoapHeader(); mySoapHeader.text = "This header is inserted before the first header"; mySoapHeaderCollection.Insert(0, mySoapHeader); mySoapHeaders = new MySoapHeader[mySoapHeaderCollection.Count]; mySoapHeaderCollection.CopyTo(mySoapHeaders, 0); object[] results = this.Invoke("Add", new object[] {xValue, yValue}); return ((System.Single)(results[0])); } [System.Diagnostics.DebuggerStepThroughAttribute()] public MathSvc() { this.Url = "http://localhost/MathSvc_SoapHeaderCollection.cs.asmx"; } public System.IAsyncResult BeginAdd(System.Single xValue, System.Single yValue, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("Add", new object[] {xValue, yValue}, callback, asyncState); } public System.Single EndAdd(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((System.Single)(results[0])); } }
[System::Web::Services::WebServiceBindingAttribute(Name="MathSvcSoap", Namespace="http://tempuri.org/")] public ref class MathSvc: public System::Web::Services::Protocols::SoapHttpClientProtocol { public: array<SoapHeader^>^ mySoapHeaders; [SoapHeaderAttribute("mySoapHeaders", Direction=SoapHeaderDirection::In)] [System::Web::Services::Protocols::SoapDocumentMethodAttribute( "http://tempuri.org/Add", Use=System::Web::Services::Description::SoapBindingUse::Literal, ParameterStyle=System::Web::Services::Protocols::SoapParameterStyle::Wrapped)] [MySoapExtensionAttribute] Single Add( Single xValue, Single yValue ) { SoapHeaderCollection^ mySoapHeaderCollection = gcnew SoapHeaderCollection; MySoapHeader^ mySoapHeader; mySoapHeader = gcnew MySoapHeader; mySoapHeader->text = "This is the first SOAP header"; mySoapHeaderCollection->Add( mySoapHeader ); mySoapHeader = gcnew MySoapHeader; mySoapHeader->text = "This is the second SOAP header"; mySoapHeaderCollection->Add( mySoapHeader ); mySoapHeader = gcnew MySoapHeader; mySoapHeader->text = "This header is inserted before the first header"; mySoapHeaderCollection->Insert( 0, mySoapHeader ); mySoapHeaders = gcnew array<MySoapHeader^>(mySoapHeaderCollection->Count); mySoapHeaderCollection->CopyTo( mySoapHeaders, 0 ); array<Object^>^ temp0 = {xValue,yValue}; array<Object^>^ results = this->Invoke( "Add", temp0 ); return ( (Single)( results[ 0 ] ) ); } [System::Diagnostics::DebuggerStepThroughAttribute] MathSvc() { this->Url = "http://localhost/MathSvc_SoapHeaderCollection.cs.asmx"; } System::IAsyncResult^ BeginAdd( Single xValue, Single yValue, System::AsyncCallback^ callback, Object^ asyncState ) { array<Object^>^ temp1 = {xValue,yValue}; return this->BeginInvoke( "Add", temp1, callback, asyncState ); } Single EndAdd( System::IAsyncResult^ asyncResult ) { array<Object^>^ results = this->EndInvoke( asyncResult ); return ( (Single)( results[ 0 ] ) ); } };
/** @attribute System.Web.Services.WebServiceBindingAttribute( Name = "MathSvcSoap", Namespace = "http://tempuri.org/") */ public class MathSvc extends System.Web.Services.Protocols. SoapHttpClientProtocol { public SoapHeader mySoapHeaders[]; /** @attribute SoapHeaderAttribute("mySoapHeaders", Direction = SoapHeaderDirection.In) */ /** @attribute System.Web.Services.Protocols.SoapDocumentMethodAttribute( "http://tempuri.org/Add", Use = System.Web.Services.Description. SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols. SoapParameterStyle.Wrapped) */ /** @attribute MySoapExtensionAttribute() */ public float Add(float xValue, float yValue) { SoapHeaderCollection mySoapHeaderCollection = new SoapHeaderCollection(); MySoapHeader mySoapHeader; mySoapHeader = new MySoapHeader(); mySoapHeader.text = "This is the first SOAP header"; mySoapHeaderCollection.Add(mySoapHeader); mySoapHeader = new MySoapHeader(); mySoapHeader.text = "This is the second SOAP header"; mySoapHeaderCollection.Add(mySoapHeader); mySoapHeader = new MySoapHeader(); mySoapHeader.text = "This header is inserted before the first header"; mySoapHeaderCollection.Insert(0, mySoapHeader); mySoapHeaders = new MySoapHeader[mySoapHeaderCollection.get_Count()]; mySoapHeaderCollection.CopyTo(mySoapHeaders, 0); Object results[] = this.Invoke("Add", new Object[] { (System.Double)xValue, (System.Double)yValue }); return (float)(System.Double)results.get_Item(0); } //Add /** @attribute System.Diagnostics.DebuggerStepThroughAttribute() */ public MathSvc() { this.set_Url("http://localhost/MathSvc_SoapHeaderCollection.jsl.asmx"); } //MathSvc public System.IAsyncResult BeginAdd(float xValue, float yValue, System.AsyncCallback callBack, Object asyncState) { return this.BeginInvoke("Add", new Object[] { (System.Double)xValue, (System.Double)yValue }, callBack, asyncState); } //BeginAdd public float EndAdd(System.IAsyncResult asyncResult) { Object results[] = this.EndInvoke(asyncResult); return (float)(System.Double)results.get_Item(0); } //EndAdd } //MathSvc

System.Collections.CollectionBase
System.Web.Services.Protocols.SoapHeaderCollection


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


SoapHeaderCollection コンストラクタ
アセンブリ: System.Web.Services (system.web.services.dll 内)


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


SoapHeaderCollection プロパティ

名前 | 説明 | |
---|---|---|
![]() | Capacity | CollectionBase に格納できる要素の数を取得または設定します。 ( CollectionBase から継承されます。) |
![]() | Count | CollectionBase インスタンスに格納されている要素の数を取得します。このプロパティはオーバーライドできません。 ( CollectionBase から継承されます。) |
![]() | Item | SoapHeaderCollection の指定したインデックスにある SoapHeader を取得または設定します。 |

名前 | 説明 | |
---|---|---|
![]() | InnerList | CollectionBase インスタンス内の要素のリストを格納する ArrayList を取得します。 ( CollectionBase から継承されます。) |
![]() | List | CollectionBase インスタンス内の要素のリストを格納する IList を取得します。 ( CollectionBase から継承されます。) |

SoapHeaderCollection メソッド

名前 | 説明 | |
---|---|---|
![]() | Add | SoapHeader を SoapHeaderCollection に追加します。 |
![]() | Clear | CollectionBase インスタンスからすべてのオブジェクトを削除します。このメソッドはオーバーライドできません。 ( CollectionBase から継承されます。) |
![]() | Contains | SoapHeaderCollection に特定の SoapHeader が格納されているかどうかを確認します。 |
![]() | CopyTo | SoapHeaderCollection の要素を Array にコピーします。Array の特定のインデックスからコピーが開始されます。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetEnumerator | CollectionBase インスタンスを反復処理する列挙子を返します。 ( CollectionBase から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | IndexOf | SoapHeaderCollection 内の SoapHeader のインデックスを確認します。 |
![]() | Insert | SoapHeaderCollection 内の指定したインデックス位置に、SoapHeader を挿入します。 |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | Remove | SoapHeaderCollection 内で最初に見つかった特定の SoapHeader を削除します。 |
![]() | RemoveAt | CollectionBase インスタンスの指定したインデックスにある要素を削除します。このメソッドはオーバーライドできません。 ( CollectionBase から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
![]() | OnClear | CollectionBase インスタンスの内容を消去するときに、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnClearComplete | CollectionBase インスタンスの内容を消去した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnInsert | CollectionBase インスタンスに新しい要素を挿入する前に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnInsertComplete | CollectionBase インスタンスに新しい要素を挿入した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnRemove | CollectionBase インスタンスから要素を削除するときに、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnRemoveComplete | CollectionBase インスタンスから要素を削除した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnSet | CollectionBase インスタンスに値を設定する前に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnSetComplete | CollectionBase インスタンスに値を設定した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnValidate | 値を検証するときに、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |

SoapHeaderCollection メンバ
SoapHeader クラスのインスタンスのコレクションを格納します。
SoapHeaderCollection データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | SoapHeaderCollection |

名前 | 説明 | |
---|---|---|
![]() | Capacity | CollectionBase に格納できる要素の数を取得または設定します。(CollectionBase から継承されます。) |
![]() | Count | CollectionBase インスタンスに格納されている要素の数を取得します。このプロパティはオーバーライドできません。(CollectionBase から継承されます。) |
![]() | Item | SoapHeaderCollection の指定したインデックスにある SoapHeader を取得または設定します。 |

名前 | 説明 | |
---|---|---|
![]() | InnerList | CollectionBase インスタンス内の要素のリストを格納する ArrayList を取得します。(CollectionBase から継承されます。) |
![]() | List | CollectionBase インスタンス内の要素のリストを格納する IList を取得します。(CollectionBase から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Add | SoapHeader を SoapHeaderCollection に追加します。 |
![]() | Clear | CollectionBase インスタンスからすべてのオブジェクトを削除します。このメソッドはオーバーライドできません。 (CollectionBase から継承されます。) |
![]() | Contains | SoapHeaderCollection に特定の SoapHeader が格納されているかどうかを確認します。 |
![]() | CopyTo | SoapHeaderCollection の要素を Array にコピーします。Array の特定のインデックスからコピーが開始されます。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetEnumerator | CollectionBase インスタンスを反復処理する列挙子を返します。 (CollectionBase から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | IndexOf | SoapHeaderCollection 内の SoapHeader のインデックスを確認します。 |
![]() | Insert | SoapHeaderCollection 内の指定したインデックス位置に、SoapHeader を挿入します。 |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | Remove | SoapHeaderCollection 内で最初に見つかった特定の SoapHeader を削除します。 |
![]() | RemoveAt | CollectionBase インスタンスの指定したインデックスにある要素を削除します。このメソッドはオーバーライドできません。 (CollectionBase から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
![]() | OnClear | CollectionBase インスタンスの内容を消去するときに、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnClearComplete | CollectionBase インスタンスの内容を消去した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnInsert | CollectionBase インスタンスに新しい要素を挿入する前に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnInsertComplete | CollectionBase インスタンスに新しい要素を挿入した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnRemove | CollectionBase インスタンスから要素を削除するときに、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnRemoveComplete | CollectionBase インスタンスから要素を削除した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnSet | CollectionBase インスタンスに値を設定する前に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnSetComplete | CollectionBase インスタンスに値を設定した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnValidate | 値を検証するときに、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |

Weblioに収録されているすべての辞書からSoapHeaderCollectionを検索する場合は、下記のリンクをクリックしてください。

- SoapHeaderCollectionのページへのリンク