System.Environment.UserInteractive Property

Gets a value indicating whether the current process is running in user interactive mode.

Syntax

public static bool UserInteractive { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Environment.UserInteractive property reports false for a Windows process or a service like IIS that runs without a user interface. If this property is false, do not display modal dialogs or message boxes because there is no graphical user interface for the user to interact with.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0