Partilhar via


ConsoleDebugContext Constructor

Initializes a new instance of the ConsoleDebugContext class with the specified DebugMode.

Namespace:  Microsoft.CommerceServer.Runtime.Diagnostics
Assembly:  Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub New ( _
    debugMode As DebugMode _
)
'Usage
Dim debugMode As DebugMode

Dim instance As New ConsoleDebugContext(debugMode)
public ConsoleDebugContext(
    DebugMode debugMode
)
public:
ConsoleDebugContext(
    DebugMode debugMode
)
public function ConsoleDebugContext(
    debugMode : DebugMode
)

Parameters

Remarks

Use this method to create a new instance of the ConsoleDebugContext class.

Creates a new ConsoleDebugContext with the specified DebugMode. The DebugMode enumeration values may be:

  • Checked - indicates that special time or resource intensive checks should be made.

  • Debug - special checks are made, but not those that are resource or time intensive.

  • Production - no special checks are made.

Permissions

See Also

Reference

ConsoleDebugContext Class

ConsoleDebugContext Members

Microsoft.CommerceServer.Runtime.Diagnostics Namespace