다음을 통해 공유


TaskLoggingHelper.LogWarningFromException Method

Definition

Logs a warning using the message from the specified exception.

Overloads

LogWarningFromException(Exception)

Logs a warning using the message from the given exception context. Thread safe.

LogWarningFromException(Exception, Boolean)

Logs a warning using the message (and optionally the stack-trace) from the given exception context. Thread safe.

LogWarningFromException(Exception)

Source:
TaskLoggingHelper.cs

Logs a warning using the message from the given exception context. Thread safe.

public:
 void LogWarningFromException(Exception ^ exception);
public void LogWarningFromException (Exception exception);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public void LogWarningFromException (Exception exception);
member this.LogWarningFromException : Exception -> unit
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.LogWarningFromException : Exception -> unit
Public Sub LogWarningFromException (exception As Exception)

Parameters

exception
Exception

Exception to log.

Attributes

Exceptions

Thrown when exception is null.

Remarks

This method is not thread-safe.

Applies to

LogWarningFromException(Exception, Boolean)

Source:
TaskLoggingHelper.cs

Logs a warning using the message (and optionally the stack-trace) from the given exception context. Thread safe.

public:
 void LogWarningFromException(Exception ^ exception, bool showStackTrace);
public void LogWarningFromException (Exception exception, bool showStackTrace);
member this.LogWarningFromException : Exception * bool -> unit
Public Sub LogWarningFromException (exception As Exception, showStackTrace As Boolean)

Parameters

exception
Exception

Exception to log.

showStackTrace
Boolean

If true, the exception callstack is appended to the message.

Exceptions

Thrown when exception is null.

Remarks

This method is not thread-safe.

Applies to