TeamFoundationTrace Class

Represents a trace on Team Foundation Server.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.TeamFoundationTrace

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

Syntax

'Declaration
Public NotInheritable Class TeamFoundationTrace
public sealed class TeamFoundationTrace
public ref class TeamFoundationTrace sealed
[<Sealed>]
type TeamFoundationTrace =  class end
public final class TeamFoundationTrace

The TeamFoundationTrace type exposes the following members.

Constructors

  Name Description
Public method TeamFoundationTrace Initializes a new instance of the TeamFoundationTrace class.

Top

Properties

  Name Description
Public propertyStatic member IsTracingEnabled Check to see whether tracing is enabled. For efficiency, this method can be called before any other trace methods that would do more work (keyword lookup, etc).

Top

Methods

  Name Description
Public methodStatic member Enter(String) Start a nested trace block with the specified message.
Public methodStatic member Enter(array<String[], String) See overload
Public methodStatic member Enter(array<String[], TraceLevel, String) Start a nested trace block; the block is completed using Exit()
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic member Error(String) Write a message to the trace output.
Public methodStatic member Error(String, Exception) Write an exception to the trace output.
Public methodStatic member Error(String, array<Object[]) Writes a message to the trace output.
Public methodStatic member Error(array<String[], Exception) Write an exception to the trace output
Public methodStatic member Error(array<String[], String) Trace a message if the error level is set for the category
Public methodStatic member Error(array<String[], String, array<Object[]) Write a message to the trace output using the specified category
Public methodStatic member Error(array<String[], String, String, Exception) Write an exception, information, and method to the trace output
Public methodStatic member ErrorIf(Boolean, String) Conditionally write a message to the trace output.
Public methodStatic member ErrorIf(Boolean, String, array<Object[]) Conditionally write a message to the trace output.
Public methodStatic member Exit(String) Complete a nested trace block created by Enter.
Public methodStatic member Exit(array<String[], String) See overload.
Public methodStatic member Exit(array<String[], TraceLevel, String) Complete a nested trace block created by Enter()
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member Info(String) Writes an informational message to the trace output.
Public methodStatic member Info(String, array<Object[]) Writes an informational message to the trace output.
Public methodStatic member Info(array<String[], String) Trace a message if the information level is set for the keywords
Public methodStatic member Info(array<String[], String, array<Object[]) Write a message to the trace output
Public methodStatic member InfoIf(Boolean, String) Conditionally write an informational message to the trace output.
Public methodStatic member InfoIf(Boolean, String, array<Object[]) Conditionally write a message to the trace output.
Public methodStatic member IsTracing(String) Check to see whether tracing is enabled for any of the specified keywords.
Public methodStatic member IsTracing(array<String[]) Check to see whether tracing is enabled for any of the specified keywords.
Public methodStatic member IsTracing(String, TraceLevel) Check to see whether tracing is enabled at the specified level for any of the keywords.
Public methodStatic member IsTracing(array<String[], TraceLevel) Check to see whether tracing is enabled at the specified level for any of the keywords.
Public methodStatic member MethodEntry(array<Object[]) Trace entry into a method. This includes the method’s signature.
Public methodStatic member MethodEntry(Int32, array<Object[]) Trace entry into a method. This includes the method’s signature.
Public methodStatic member MethodExit() Trace method exit. This includes the method's signature.
Public methodStatic member MethodExit(Int32) Trace method exit. This includes the method's signature.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public methodStatic member TraceAndDebugFailException(Exception) Write an exception to the trace output and fail with the specified exception.
Public methodStatic member TraceAndDebugFailException(array<String[], Exception) Write an exception to the trace output and Debug.Fail with the exception message
Public methodStatic member TraceCallStack TrackStack is used to output the current call stack.
Public methodStatic member TraceException(Exception) Write an exception to the trace output.
Public methodStatic member TraceException(array<String[], Exception) Write an exception to the trace category output.
Public methodStatic member TraceException(String, String, Exception) Write an exception to the trace output with the specified category.
Public methodStatic member TraceException(array<String[], String, Exception) Write an exception to the trace output
Public methodStatic member Verbose(String) Writes a detailed message to the trace output.
Public methodStatic member Verbose(String, array<Object[]) Writes a detailed message to the trace output.
Public methodStatic member Verbose(array<String[], String) Trace a message if the verbose level is set for the keywords
Public methodStatic member Verbose(array<String[], String, array<Object[]) Write a message to the trace output
Public methodStatic member VerboseIf(Boolean, String) Conditionally writes a detailed message to the trace output.
Public methodStatic member VerboseIf(Boolean, String, array<Object[]) Conditionally writes a detailed message to the trace output.
Public methodStatic member Warning(String) Writes a warning message to the trace output.
Public methodStatic member Warning(String, array<Object[]) Writes a warning message to the trace output.
Public methodStatic member Warning(array<String[], String) Trace a message if the warning level is set for the keyword
Public methodStatic member Warning(array<String[], String, array<Object[]) Write a message to the trace output
Public methodStatic member WarningIf(Boolean, String) Conditionally writes a warning message to the trace output.
Public methodStatic member WarningIf(Boolean, String, array<Object[]) Conditionally writes a warning message to the trace output.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation Namespace