Freigeben über


ExceptionClassAttribute.Value-Eigenschaft

Ruft den Namen der Ausnahmeklasse für den Player ab, der vor dem Weiterleiten der Meldung an die Dead Letter-Warteschlange aktiviert werden und eine Wiedergabe abspielen soll.

Namespace: System.EnterpriseServices
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)

Syntax

'Declaration
Public ReadOnly Property Value As String
'Usage
Dim instance As ExceptionClassAttribute
Dim value As String

value = instance.Value
public string Value { get; }
public:
property String^ Value {
    String^ get ();
}
/** @property */
public String get_Value ()
public function get Value () : String

Eigenschaftenwert

Der Name der Ausnahmeklasse für den Player, die vor dem Weiterleiten der Meldung an die Dead Letter-Warteschlange aktiviert und wiedergegeben werden soll.

Beispiel

Im folgenden Codebeispiel wird der Wert der Value-Eigenschaft eines ExceptionClass-Attributs abgerufen.

[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);
    }
}
/** @attribute ExceptionClass("ExceptionHandler")
 */
public class ExceptionClassAttribute_Value extends ServicedComponent
{
    public void ValueExample()
    {
        // Get the ExceptionClassAttribute applied to the class.
        ExceptionClassAttribute attribute = (ExceptionClassAttribute)(
            Attribute.GetCustomAttribute(this.GetType(),
            ExceptionClassAttribute.class.ToType(), false));

        // Display the value of the attribute's Value property.
        Console.WriteLine("ExceptionClassAttribute.Value: {0}",
            attribute.get_Value());
    } //ValueExample
} //ExceptionClassAttribute_Value

.NET Framework-Sicherheit

  • Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter .

Plattformen

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

ExceptionClassAttribute-Klasse
ExceptionClassAttribute-Member
System.EnterpriseServices-Namespace