Share via


TeamFoundationTracingExtensionMethods.TraceBlock Method

Include Protected Members
Include Inherited Members

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  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

See Also

Reference

TeamFoundationTracingExtensionMethods Class

Microsoft.TeamFoundation.Framework.Server Namespace