通过


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);
    }
}

适用于