ExceptionClassAttribute.Value Egenskap
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Hämtar namnet på undantagsklassen så att spelaren kan aktivera och spela upp innan meddelandet dirigeras till kön med obeställbara meddelanden.
public:
property System::String ^ Value { System::String ^ get(); };
public string Value { get; }
member this.Value : string
Public ReadOnly Property Value As String
Egenskapsvärde
Namnet på undantagsklassen för spelaren att aktivera och spela upp innan meddelandet dirigeras till kön med obeställbara meddelanden.
Exempel
I följande kodexempel hämtas värdet för ett ExceptionClass attributs Value egenskap.
[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);
}
}