AdminTraceLogger.Warning Method (Exception)
Formats an exception and writes it as a warning message to the trace, provided that TraceLevel of this logger is set to TraceLevel.Warning, TraceLevel.Info or TraceLevel.Verbose.
Namespace: Microsoft.TeamFoundation.Common
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Sub Warning ( _
exception As Exception _
)
public void Warning(
Exception exception
)
public:
virtual void Warning(
Exception^ exception
) sealed
abstract Warning :
exception:Exception -> unit
override Warning :
exception:Exception -> unit
public final function Warning(
exception : Exception
)
Parameters
exception
Type: System.ExceptionAn exception to write to the trace. Null is allowed.
Implements
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.