Udostępnij przez


ExceptionClassAttribute.Value Właściwość

Definicja

Pobiera nazwę klasy wyjątku, którą gracz może aktywować i odtworzyć przed skierowaniem komunikatu do kolejki utraconych komunikatów.

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

Wartość właściwości

Nazwa klasy wyjątku, którą gracz może aktywować i odtworzyć przed skierowaniem komunikatu do kolejki utraconych komunikatów.

Przykłady

Poniższy przykład kodu pobiera wartość ExceptionClass właściwości atrybutu Value .

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

Dotyczy