ExceptionClassAttribute.Value Eigenschap

Definitie

Hiermee wordt de naam van de uitzonderingsklasse opgehaald die de speler moet activeren en afspelen voordat het bericht wordt doorgestuurd naar de wachtrij met dode letters.

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

Waarde van eigenschap

De naam van de uitzonderingsklasse die de speler moet activeren en afspelen voordat het bericht wordt doorgestuurd naar de wachtrij met dode letters.

Voorbeelden

In het volgende codevoorbeeld wordt de waarde van de eigenschap van een ExceptionClass kenmerk Value opgehaald.

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

Van toepassing op