Share via


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.Exception

    An exception to write to the trace. Null is allowed.

Implements

ITFLogger.Warning(Exception)

.NET Framework Security

See Also

Reference

AdminTraceLogger Class

Warning Overload

Microsoft.TeamFoundation.Common Namespace