TraceContextRecord.ErrorInfo Propriété
Définition
public:
property Exception ^ ErrorInfo { Exception ^ get(); };
public Exception ErrorInfo { get; }
member this.ErrorInfo : Exception
Public ReadOnly Property ErrorInfo As Exception
Valeur de propriété
Exception associé à l'enregistrement de trace, s'il existe, ou null
.A Exception associated with the trace record, if one exists, or null
.
Remarques
Vous pouvez inclure une exception dans un enregistrement de trace si vous utilisez le suivi pour déboguer une application ou résoudre les problèmes de gestion des erreurs et des exceptions.You can include an exception in a trace record if you are using tracing to debug an application or troubleshoot error and exception handling. La ErrorInfo propriété est null
lorsque l’enregistrement de trace est associé à l’une des TraceContext méthodes qui n’a pas de errorInfo
paramètre explicite ou aucune exception n’est fournie.The ErrorInfo property is null
when the trace record is associated with one of the TraceContext methods that does not have an explicit errorInfo
parameter or no exception is provided.