Partager via


AdminTraceLogger.WriteLine Method (TraceLevel, String)

Writes a message to the trace, provided that traceLevel passed as first argument is is not lower than the logger TraceLevel. In debug build, this method can also ensure that output does not contain passwords.

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Declaration
Public Overridable Sub WriteLine ( _
    traceLevel As TraceLevel, _
    message As String _
)
public virtual void WriteLine(
    TraceLevel traceLevel,
    string message
)
public:
virtual void WriteLine(
    TraceLevel traceLevel, 
    String^ message
)
abstract WriteLine : 
        traceLevel:TraceLevel * 
        message:string -> unit  
override WriteLine : 
        traceLevel:TraceLevel * 
        message:string -> unit
public function WriteLine(
    traceLevel : TraceLevel, 
    message : String
)

Parameters

.NET Framework Security

See Also

Reference

AdminTraceLogger Class

WriteLine Overload

Microsoft.TeamFoundation.Common Namespace