STrace Class

 

Contains methods that can be used to trace the execution of code in SQL Server.

Namespace:   Microsoft.SqlServer.Management.Diagnostics
Assembly:  Microsoft.SqlServer.SqlTDiagM (in Microsoft.SqlServer.SqlTDiagM.dll)

System.Object
  Microsoft.SqlServer.Management.Diagnostics.STrace

public sealed class STrace

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticAutoFlush

Gets or sets a value indicating whether all messages will be automatically flushed.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAssert(Boolean)

Checks for a condition. If the condition is false, displays a message box that shows the call stack.

System_CAPS_pubmethodSystem_CAPS_staticAssert(Boolean, String)

Checks for a condition. If the condition is false, this method sends a specified message and displays a message box that shows the call stack.

System_CAPS_pubmethodSystem_CAPS_staticEnter()

Increases the indentation in the trace results when entering into a function.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticImplies(Boolean, Boolean)

Causes an assertion if premise is true and conclusion is false.

System_CAPS_pubmethodSystem_CAPS_staticImplies(Boolean, Boolean, String)

Causes an assertion if premise is true and conclusion is false and displays a message about the assertion.

System_CAPS_pubmethodSystem_CAPS_staticLeave()

Decreases the indentation in the trace results when returning from a function.

System_CAPS_pubmethodSystem_CAPS_staticLogExCatch(Exception)

Logs the fact that an exception was caught, together with the exception message and the stack trace.

System_CAPS_pubmethodSystem_CAPS_staticLogExThrow()

Logs the fact that an exception was thrown, and includes the current stack trace.

System_CAPS_pubmethodSystem_CAPS_staticParams(String, String, String, Object[])

Traces function parameters. Logs the input parameters of a function.

System_CAPS_pubmethodSystem_CAPS_staticSetDefaultLevel(String, UInt32)

Sets the default trace level for the specified component.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticTrace(String, String)

Traces with the default trace level for the component.

System_CAPS_pubmethodSystem_CAPS_staticTrace(String, String, Object[])

Traces with the default trace level for the component, and logs the input parameters of the method.

System_CAPS_pubmethodSystem_CAPS_staticTrace(String, UInt32, String)

Traces with the specified trace level.

System_CAPS_pubmethodSystem_CAPS_staticTrace(String, UInt32, String, Object[])

Traces with the specified trace level for the component, and specifies the input parameters to format.

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

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

Return to top
Show: