Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DefaultTraceListener::AssertUiEnabled Property

 

Gets or sets a value indicating whether the application is running in user-interface mode.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public:
property bool AssertUiEnabled {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if user-interface mode is enabled; otherwise, false.

The following code example calls a function that calls the Fail(String^, String^) method to log an error message if the function throws an exception. If the AssertUiEnabled property is false, the method also writes the error message to the console.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: