ExceptionClassAttribute.Value Egenskap

Definition

Hämtar namnet på undantagsklassen så att spelaren kan aktivera och spela upp innan meddelandet dirigeras till kön med obeställbara meddelanden.

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

Egenskapsvärde

Namnet på undantagsklassen för spelaren att aktivera och spela upp innan meddelandet dirigeras till kön med obeställbara meddelanden.

Exempel

I följande kodexempel hämtas värdet för ett ExceptionClass attributs Value egenskap.

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

Gäller för