Share via


ExceptionClassAttribute.Value プロパティ

定義

メッセージが配信不能キューにルーティングされる前に、プレーヤーがアクティブにして再生する例外クラスの名前を取得します。

public:
 property System::String ^ Value { System::String ^ get(); };
public string Value { get; }
member this.Value : string
Public ReadOnly Property Value As String

プロパティ値

メッセージが配信不能キューにルーティングされる前に、プレーヤーがアクティブにして再生する例外クラスの名前。

次のコード例では、属性Valueの プロパティの値をExceptionClass取得します。

[ExceptionClass("ExceptionHandler")]
public class ExceptionClassAttribute_Value : ServicedComponent
{
    public void ValueExample()
    {
        // Get the ExceptionClassAttribute applied to the class.
        ExceptionClassAttribute attribute =
            (ExceptionClassAttribute)Attribute.GetCustomAttribute(
            this.GetType(),
            typeof(ExceptionClassAttribute),
            false);

        // Display the value of the attribute's Value property.
        Console.WriteLine("ExceptionClassAttribute.Value: {0}",
            attribute.Value);
    }
}

適用対象