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
- debugMode
Type: Microsoft.CommerceServer.Runtime.Diagnostics..::.DebugMode
The DebugMode enumerator.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.