This documentation is archived and is not being maintained.

TeamFoundationTracingExtensionMethods Class

Visual Studio 2013

Static class for Trace extension methods

System::Object
  Microsoft.TeamFoundation.Framework.Server::TeamFoundationTracingExtensionMethods

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

[ExtensionAttribute]
public ref class TeamFoundationTracingExtensionMethods abstract sealed

  NameDescription
Public methodStatic memberTraceBlock(TeamFoundationRequestContext, Int32, Int32, String, String, String)Calls requestContext.TraceEnter method and returns an IDisposable instance for the requestContext.TraceLeave call. This method call must be wrapped with a using statement. IDisposable.Dispose method is not thread safe. The caller needs to do synchronization if it wants to share IDisposable isntance with other threads.
Public methodStatic memberTraceBlock(TeamFoundationRequestContext, Int32, Int32, Int32, String, String, String, Action)Wraps an action with TraceEnter and TraceLeave methods. When there is an exception it TraceException too.
Top

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