ExceptionClassAttribute.Value Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Recebe o nome da classe de exceção para o jogador ativar e reproduzir antes de a mensagem ser encaminhada para a fila de letras mortas.
public:
property System::String ^ Value { System::String ^ get(); };
public string Value { get; }
member this.Value : string
Public ReadOnly Property Value As String
Valor de Propriedade
O nome da classe de exceção para o jogador ativar e reproduzir antes de a mensagem ser encaminhada para a fila de letras mortas.
Exemplos
O seguinte exemplo de código obtém o valor da propriedade de ExceptionClass um Value atributo.
[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);
}
}