Condividi tramite


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

'Dichiarazione
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

Methods

  Name Description
Public methodStatic member Enter(String) Start a nested trace block with the specified message.
Public methodStatic member Enter(TraceType, String) Start a nested trace block with the specified trace category and message.
Public methodStatic member Enter(TraceType, TraceLevel, String) Start a nested trace block with the specified trace category, level, and message.
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(TraceType, String) Trace an error if the error level is set for the specified category.
Public methodStatic member Error(TraceType, String, array<Object[]) Write a message to the trace output using the specified category.
Public methodStatic member Error(TraceType, String, String, Exception) Write an exception, functional category 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(TraceType, String) Complete a nested trace block created by Enter.
Public methodStatic member Exit(TraceType, TraceLevel, String) Complete a nested trace block created by Enter.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (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(TraceType, String) Writes an informational message to the trace output.
Public methodStatic member Info(TraceType, String, array<Object[]) Writes an informational 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(TraceType) Checks whether tracing is enabled at any level for the specified category.
Public methodStatic member IsTracing(TraceType, TraceLevel) Checks whether tracing is enabled at the specified level for the specified category.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member MethodEntry(array<Object[]) Trace entry into a method, including the method’s signature.
Public methodStatic member MethodEntry(Int32, array<Object[]) Trace entry into a method, including the method’s signature.
Public methodStatic member MethodExit() Trace method exit, including the method's signature.
Public methodStatic member MethodExit(Int32) Trace method exit, including the method's signature.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public methodStatic member TraceAndDebugFailException Write an exception to the trace output and fail with the specified exception.
Public methodStatic member TraceException(Exception) Write an exception to the trace output.
Public methodStatic member TraceException(TraceType, Exception) Write an exception to the trace output with the specified category.
Public methodStatic member TraceException(String, String, Exception) Write an exception to the trace output with the specified category.
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(TraceType, String) Writes a detailed message to the trace output.
Public methodStatic member Verbose(TraceType, String, array<Object[]) Writes a detailed 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(TraceType, String) Writes a warning message to the trace output.
Public methodStatic member Warning(TraceType, String, array<Object[]) Writes a warning 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