FaultBinding クラス
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
解説
FaultBinding クラスは、<operation> 要素で囲まれた WSDL (Web Services Description Language) <fault> 要素に対応します。さらに、この要素は OperationBinding クラスに対応します。WSDL の詳細については、http://www.w3.org/TR/wsdl/ の仕様を参照してください。
FaultBinding クラスの一般的な使用例を次に示します。
Dim myFaultBindingCollection As FaultBindingCollection = myOperationBinding.Faults Dim myFaultBinding As New FaultBinding() myFaultBinding.Name = "ErrorString" ' Associate SOAP fault binding to the fault binding of the operation. myExtensions = myFaultBinding.Extensions Dim mySoapFaultBinding As New SoapFaultBinding() mySoapFaultBinding.Use = SoapBindingUse.Literal mySoapFaultBinding.Namespace = "http://www.contoso.com/stockquote" myExtensions.Add(mySoapFaultBinding) myFaultBindingCollection.Add(myFaultBinding)
FaultBindingCollection myFaultBindingCollection = myOperationBinding.Faults; FaultBinding myFaultBinding = new FaultBinding(); myFaultBinding.Name = "ErrorString"; // Associate SOAP fault binding to the fault binding of the operation. myExtensions = myFaultBinding.Extensions; SoapFaultBinding mySoapFaultBinding = new SoapFaultBinding(); mySoapFaultBinding.Use = SoapBindingUse.Literal; mySoapFaultBinding.Namespace = "http://www.contoso.com/stockquote"; myExtensions.Add(mySoapFaultBinding); myFaultBindingCollection.Add(myFaultBinding);
FaultBindingCollection^ myFaultBindingCollection = myOperationBinding->Faults; FaultBinding^ myFaultBinding = gcnew FaultBinding; myFaultBinding->Name = "ErrorString"; // Associate SOAP fault binding to the fault binding of the operation. myExtensions = myFaultBinding->Extensions; SoapFaultBinding^ mySoapFaultBinding = gcnew SoapFaultBinding; mySoapFaultBinding->Use = SoapBindingUse::Literal; mySoapFaultBinding->Namespace = "http://www.contoso.com/stockquote"; myExtensions->Add( mySoapFaultBinding ); myFaultBindingCollection->Add( myFaultBinding );
FaultBindingCollection myFaultBindingCollection = myOperationBinding.get_Faults(); FaultBinding myFaultBinding = new FaultBinding(); myFaultBinding.set_Name("ErrorString"); // Associate SOAP fault binding to the fault binding of the operation. myExtensions = myFaultBinding.get_Extensions(); SoapFaultBinding mySoapFaultBinding = new SoapFaultBinding(); mySoapFaultBinding.set_Use(SoapBindingUse.Literal); mySoapFaultBinding.set_Namespace("http://www.contoso.com/stockquote"); myExtensions.Add(mySoapFaultBinding); myFaultBindingCollection.Add(myFaultBinding);
System.Web.Services.Description.DocumentableItem
System.Web.Services.Description.NamedItem
System.Web.Services.Description.MessageBinding
System.Web.Services.Description.FaultBinding
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
FaultBinding コンストラクタ
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
FaultBinding プロパティ
パブリック プロパティ
名前 | 説明 | |
---|---|---|
Documentation | DocumentableItem のインスタンスのテキスト ドキュメントを取得または設定します。 ( DocumentableItem から継承されます。) | |
DocumentationElement | DocumentableItem のドキュメント要素を取得または設定します。 ( DocumentableItem から継承されます。) | |
ExtensibleAttributes | Web Services Interoperability (WS-I) Basic Profile 1.1 に準拠する WSDL の属性の拡張機能を表す XmlAttribute 型の配列を取得または設定します。 ( DocumentableItem から継承されます。) | |
Extensions | オーバーライドされます。 現在の FaultBinding に関連付けられている機能拡張要素のコレクションを取得します。 | |
Name | 項目の名前を取得または設定します。 ( NamedItem から継承されます。) | |
Namespaces | ServiceDescription オブジェクトが生成されるときに名前空間プレフィックスと名前空間を保持するために使用する、名前空間プレフィックスと名前空間のディクショナリを取得または設定します。 ( DocumentableItem から継承されます。) | |
OperationBinding | 現在の MessageBinding がメンバとして含まれている OperationBinding を取得します。 ( MessageBinding から継承されます。) |
FaultBinding メソッド
パブリック メソッド
名前 | 説明 | |
---|---|---|
Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) | |
GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) | |
GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) | |
ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) | |
ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |
名前 | 説明 | |
---|---|---|
Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) | |
MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
FaultBinding メンバ
操作結果として出力されるエラー メッセージの形式を指定します。このクラスは継承できません。
FaultBinding データ型で公開されるメンバを以下の表に示します。
パブリック コンストラクタ
名前 | 説明 | |
---|---|---|
FaultBinding |
名前 | 説明 | |
---|---|---|
Documentation | DocumentableItem のインスタンスのテキスト ドキュメントを取得または設定します。(DocumentableItem から継承されます。) | |
DocumentationElement | DocumentableItem のドキュメント要素を取得または設定します。(DocumentableItem から継承されます。) | |
ExtensibleAttributes | Web Services Interoperability (WS-I) Basic Profile 1.1 に準拠する WSDL の属性の拡張機能を表す XmlAttribute 型の配列を取得または設定します。(DocumentableItem から継承されます。) | |
Extensions | オーバーライドされます。 現在の FaultBinding に関連付けられている機能拡張要素のコレクションを取得します。 | |
Name | 項目の名前を取得または設定します。(NamedItem から継承されます。) | |
Namespaces | ServiceDescription オブジェクトが生成されるときに名前空間プレフィックスと名前空間を保持するために使用する、名前空間プレフィックスと名前空間のディクショナリを取得または設定します。(DocumentableItem から継承されます。) | |
OperationBinding | 現在の MessageBinding がメンバとして含まれている OperationBinding を取得します。(MessageBinding から継承されます。) |
名前 | 説明 | |
---|---|---|
Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) | |
GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) | |
GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) | |
ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) | |
ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |
名前 | 説明 | |
---|---|---|
Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) | |
MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
- FaultBindingのページへのリンク