Partager via


TeamFoundationTracingExtensionMethods Class

Static class for Trace extension methods

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class TeamFoundationTracingExtensionMethods
public static class TeamFoundationTracingExtensionMethods
[ExtensionAttribute]
public ref class TeamFoundationTracingExtensionMethods abstract sealed
[<AbstractClass>]
[<Sealed>]
type TeamFoundationTracingExtensionMethods =  class end
public final class TeamFoundationTracingExtensionMethods

Methods

  Name Description
Public methodStatic member TraceBlock(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 member TraceBlock(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

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.Framework.Server Namespace