Bagikan melalui


ExceptionClassAttribute.Value Properti

Definisi

Mendapatkan nama kelas pengecualian bagi pemutar untuk mengaktifkan dan memutar kembali sebelum pesan dirutekan ke antrean dead letter.

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

Nilai Properti

Nama kelas pengecualian bagi pemutar untuk mengaktifkan dan memutar kembali sebelum pesan dirutekan ke antrean surat mati.

Contoh

Contoh kode berikut mendapatkan nilai ExceptionClass properti atribut 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);
    }
}

Berlaku untuk