ExceptionClassAttribute.Value Proprietà

Definizione

Ottiene il nome della classe di eccezione per l'attivazione del lettore e la riproduzione prima che il messaggio sia indirizzato alla coda dei messaggi non consegnati.

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

Valore della proprietà

Nome della classe di eccezione per l'attivazione del lettore e la riproduzione prima che il messaggio sia indirizzato alla coda dei messaggi non consegnati.

Esempio

L'esempio di codice seguente ottiene il valore della proprietà di Value un ExceptionClass attributo.

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

Si applica a