ExceptionClassAttribute.Value Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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);
}
}