ExceptionClassAttribute.Value Propriedade

Definição

Recebe o nome da classe de exceção para o jogador ativar e reproduzir antes de a mensagem ser encaminhada para a fila de letras mortas.

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

Valor de Propriedade

O nome da classe de exceção para o jogador ativar e reproduzir antes de a mensagem ser encaminhada para a fila de letras mortas.

Exemplos

O seguinte exemplo de código obtém o valor da propriedade de ExceptionClass um Value atributo.

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

Aplica-se a