FaultBinding クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
操作の結果として出力される可能性があるエラー メッセージの形式を指定します。 このクラスは継承できません。
public ref class FaultBinding sealed : System::Web::Services::Description::MessageBinding
[System.Web.Services.Configuration.XmlFormatExtensionPoint("Extensions")]
public sealed class FaultBinding : System.Web.Services.Description.MessageBinding
[<System.Web.Services.Configuration.XmlFormatExtensionPoint("Extensions")>]
type FaultBinding = class
inherit MessageBinding
Public NotInheritable Class FaultBinding
Inherits MessageBinding
- 継承
- 継承
- 属性
例
次の例では、 FaultBinding クラスの一般的な使用方法を示します。
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.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);
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)
注釈
FaultBinding クラスは、<fault>要素で囲まれた Web サービス記述言語 (WSDL) <operation>要素に対応し、OperationBinding クラスに対応します。 WSDL の詳細については、 WSDL 仕様を参照してください。
コンストラクター
| 名前 | 説明 |
|---|---|
| FaultBinding() |
FaultBinding クラスの新しいインスタンスを初期化します。 |
プロパティ
| 名前 | 説明 |
|---|---|
| Documentation |
DocumentableItemのインスタンスのテキスト ドキュメントを取得または設定します。 (継承元 DocumentableItem) |
| DocumentationElement |
DocumentableItemのドキュメント要素を取得または設定します。 (継承元 DocumentableItem) |
| ExtensibleAttributes |
Web サービス相互運用性 (WS-I) Basic Profile 1.1 に準拠する WSDL の属性拡張を表す XmlAttribute 型の配列を取得または設定します。 (継承元 DocumentableItem) |
| Extensions |
現在の FaultBindingに関連付けられている機能拡張要素のコレクションを取得します。 |
| Name |
MessageBindingの名前を取得または設定します。 (継承元 MessageBinding) |
| Namespaces |
ServiceDescription オブジェクトの作成時に名前空間プレフィックスと名前空間を保持するために使用される名前空間プレフィックスと名前空間のディクショナリを取得または設定します。 (継承元 DocumentableItem) |
| OperationBinding |
現在のOperationBindingがメンバーであるMessageBindingを取得します。 (継承元 MessageBinding) |
メソッド
| 名前 | 説明 |
|---|---|
| Equals(Object) |
指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。 (継承元 Object) |
| GetHashCode() |
既定のハッシュ関数として機能します。 (継承元 Object) |
| GetType() |
現在のインスタンスの Type を取得します。 (継承元 Object) |
| MemberwiseClone() |
現在の Objectの簡易コピーを作成します。 (継承元 Object) |
| ToString() |
現在のオブジェクトを表す文字列を返します。 (継承元 Object) |