ExceptionClassAttribute.Value Özellik

Tanım

İleti teslim edilemeyen harf kuyruğuna yönlendirilmeden önce oynatıcının etkinleştirmesi ve yürütmesi için özel durum sınıfının adını alır.

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

Özellik Değeri

İleti teslim edilemeyen harf kuyruğuna yönlendirilmeden önce oynatıcının etkinleştirmesi ve yürütmesi için özel durum sınıfının adı.

Örnekler

Aşağıdaki kod örneği, özniteliğin ExceptionClassValue özelliğinin değerini alır.

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

Şunlara uygulanır