FaultHandlerActivity.FaultType プロパティ

定義

FaultHandlerActivity で処理される例外の Type を取得または設定します。 FaultType で指定された型ばかりでなく、その派生型の例外も同様に操作できます。

public:
 property Type ^ FaultType { Type ^ get(); void set(Type ^ value); };
public Type FaultType { get; set; }
member this.FaultType : Type with get, set
Public Property FaultType As Type

プロパティ値

関連付けられた TypeException

FaultType プロパティを設定する方法を次の例に示します。 この例は、補正 SDK のサンプルです。 詳細については、「 補正サンプル」を参照してください。

this.NoProductFault.FaultType = typeof(DiscontinuedProductException);
Me.NoProductFault.FaultType = GetType(DiscontinuedProductException)

注釈

FaultHandlerActivity を使用するには、このプロパティを設定する必要があります。

適用対象