Get a value indicating whether the current process is running in user interactive mode in CSharp
Description
The following code shows how to get a value indicating whether the current process is running in user interactive mode.
Example
using System;/*w ww .ja v a 2s.com*/
class Sample
{
public static void Main()
{
Console.WriteLine("UserInteractive: {0}", Environment.UserInteractive);
}
}
The code above generates the following result.