Share via


DebugContext Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the DebugContext used throughout the site.

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

Syntax

'Declaration
Public Shared Property DebugContext As DebugContext
'Usage
Dim value As DebugContext

value = CommerceApplicationModule.DebugContext

CommerceApplicationModule.DebugContext = value
public static DebugContext DebugContext { get; set; }
public:
static property DebugContext^ DebugContext {
    DebugContext^ get ();
    void set (DebugContext^ value);
}
public static function get DebugContext () : DebugContext
public static function set DebugContext (value : DebugContext)

Property Value

Type: Microsoft.CommerceServer.Runtime.Diagnostics..::.DebugContext
The debug mode for the DebugContext class.

Remarks

The DebugContext property represents the current debugging level for the application.

Throws an ArgumentNullException if an attempt is made to set the value to nullNothingnullptra null reference (Nothing in Visual Basic). The application can set this to a custom instance of DebugContext or a derived class if it chooses. It should do this in Application_OnStart or some other convenient place before the CommerceApplicationModule is initialized.

Permissions

See Also

Reference

CommerceApplicationModule Class

CommerceApplicationModule Members

Microsoft.CommerceServer.Runtime Namespace