UnobservedTaskExceptionEventArgs UnobservedTaskExceptionEventArgs UnobservedTaskExceptionEventArgs UnobservedTaskExceptionEventArgs Class

Definición

Proporciona datos para el evento que se genera cuando una excepción del objeto Task erróneo pasa inadvertida.Provides data for the event that is raised when a faulted Task's exception goes unobserved.

public ref class UnobservedTaskExceptionEventArgs : EventArgs
public class UnobservedTaskExceptionEventArgs : EventArgs
type UnobservedTaskExceptionEventArgs = class
    inherit EventArgs
Public Class UnobservedTaskExceptionEventArgs
Inherits EventArgs
Herencia
UnobservedTaskExceptionEventArgsUnobservedTaskExceptionEventArgsUnobservedTaskExceptionEventArgsUnobservedTaskExceptionEventArgs

Comentarios

La propiedad Exception se utiliza para examinar la excepción sin marcarla como observada, mientras SetObserved que el método se usa para marcar la excepción como observada.The Exception property is used to examine the exception without marking it as observed, whereas the SetObserved method is used to mark the exception as observed. Si se marca la excepción como observado, se evita que desencadene la Directiva de elevación de excepciones que, de forma predeterminada, finaliza el proceso.Marking the exception as observed prevents it from triggering exception escalation policy which, by default, terminates the process.

Constructores

UnobservedTaskExceptionEventArgs(AggregateException) UnobservedTaskExceptionEventArgs(AggregateException) UnobservedTaskExceptionEventArgs(AggregateException) UnobservedTaskExceptionEventArgs(AggregateException)

Inicializa una nueva instancia de la clase UnobservedTaskExceptionEventArgs con la excepción inadvertida.Initializes a new instance of the UnobservedTaskExceptionEventArgs class with the unobserved exception.

Propiedades

Exception Exception Exception Exception

Excepción que pasó inadvertida.The Exception that went unobserved.

Observed Observed Observed Observed

Obtiene datos sobre si esta excepción se ha marcado como "advertida".Gets whether this exception has been marked as "observed."

Métodos

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
SetObserved() SetObserved() SetObserved() SetObserved()

Marca Exception como "advertida", evitando así que desencadene la directiva de elevación de excepciones que, de forma predeterminada, termina el proceso.Marks the Exception as "observed," thus preventing it from triggering exception escalation policy which, by default, terminates the process.

ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Se aplica a

Consulte también: