AssertSettings Class

Specifies the user-interface mode for the System.Diagnostics.Debug.Assert method and the name of a message log file.

Syntax

class AssertSettings : EmbeddedObject  

Methods

This class contains no methods.

Properties

The following table lists the properties exposed by the AssertSettings class.

Name Description
AssertUIEnabled A read/write boolean value. true if user-interface mode is enabled for the Debug.Assert method; otherwise, false. The default is true. Note: In user-interface mode, a message box is displayed when you call the Debug.Assert method.
LogFileName A read/write string value that specifies the name of a log file to write trace or debug messages to.

Subclasses

This class contains no subclasses.

Remarks

Instances of this class are contained in the Assert property of the SystemDiagnosticsSection class.

Inheritance Hierarchy

EmbeddedObject

AssertSettings

Requirements

Type Description
Client - IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on Windows Server 2008
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF file WebAdministration.mof

See Also

EmbeddedObject Class
SystemDiagnosticsSection Class
System.Diagnostics.Debug.Assert Method