IsDebugMode Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets a value indicating whether the current DebugMode is set to either Debug or Checked mode.
Namespace: Microsoft.CommerceServer.Runtime.Diagnostics
Assembly: Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)
Syntax
'Declaration
Public Overridable ReadOnly Property IsDebugMode As Boolean
'Usage
Dim instance As DebugContext
Dim value As Boolean
value = instance.IsDebugMode
public virtual bool IsDebugMode { get; }
public:
virtual property bool IsDebugMode {
bool get ();
}
public function get IsDebugMode () : boolean
Property Value
Type: System..::.Boolean
true to indicate that the DebugMode is set to Debug or Checked; otherwise false.
Remarks
Returns true if the DebugMode is in Debug or Checked. Returns false if the debug mode is in Production.
This is equivalent to:
bool isDebug == (DebugContext.DebugMode == DebugMode.Debug || DebugContext.DebugMode == DebugMode.Checked);
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.