Поделиться через


ExceptionClassAttribute.Value Свойство

Определение

Получает имя класса исключений для активации и воспроизведения проигрывателя перед перенаправлением сообщения в очередь недоставленных писем.

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

Значение свойства

Имя класса исключений для проигрывателя для активации и воспроизведения перед перенаправлением сообщения в очередь недоставленных писем.

Примеры

В следующем примере кода возвращается значение свойства атрибута ExceptionClassValue .

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

Применяется к