FaultBindingとは? わかりやすく解説

FaultBinding クラス

操作結果として出力されるエラー メッセージ形式指定します。このクラス継承できません。

名前空間: System.Web.Services.Description
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Public NotInheritable Class
 FaultBinding
    Inherits MessageBinding
public sealed class FaultBinding : MessageBinding
public ref class FaultBinding sealed : public
 MessageBinding
public final class FaultBinding extends MessageBinding
public final class FaultBinding extends
 MessageBinding
解説解説

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.Object
   System.Web.Services.Description.DocumentableItem
     System.Web.Services.Description.NamedItem
       System.Web.Services.Description.MessageBinding
        System.Web.Services.Description.FaultBinding
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
FaultBinding メンバ
System.Web.Services.Description 名前空間

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 から継承されます。)
参照参照

関連項目

FaultBinding クラス
System.Web.Services.Description 名前空間

FaultBinding メソッド


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 から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

FaultBinding クラス
System.Web.Services.Description 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「FaultBinding」の関連用語

FaultBindingのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



FaultBindingのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS