Export (0) Print
Expand All

Environment Properties

The Environment type exposes the following members.

  Name Description
Public property Static member CommandLine Gets the command line for this process.
Public property Static member CurrentDirectory Gets or sets the fully qualified path of the current working directory.
Public property Static member CurrentManagedThreadId Gets a unique identifier for the current managed thread.
Public property Static member ExitCode Gets or sets the exit code of the process.
Public property Static member HasShutdownStarted Gets a value that indicates whether the current application domain is being unloaded or the common language runtime (CLR) is shutting down.
Public property Static member Is64BitOperatingSystem Determines whether the current operating system is a 64-bit operating system.
Public property Static member Is64BitProcess Determines whether the current process is a 64-bit process.
Public property Static member MachineName Gets the NetBIOS name of this local computer.
Public property Static member NewLine Gets the newline string defined for this environment.
Public property Static member OSVersion Gets an OperatingSystem object that contains the current platform identifier and version number.
Public property Static member ProcessorCount Gets the number of processors on the current machine.
Public property Static member StackTrace Gets current stack trace information.
Public property Static member SystemDirectory Gets the fully qualified path of the system directory.
Public property Static member SystemPageSize Gets the number of bytes in the operating system's memory page.
Public property Static member TickCount Gets the number of milliseconds elapsed since the system started.
Public property Static member UserDomainName Gets the network domain name associated with the current user.
Public property Static member UserInteractive Gets a value indicating whether the current process is running in user interactive mode.
Public property Static member UserName Gets the user name of the person who is currently logged on to the Windows operating system.
Public property Static member Version Gets a Version object that describes the major, minor, build, and revision numbers of the common language runtime.
Public property Static member WorkingSet Gets the amount of physical memory mapped to the process context.
Top
Show:
© 2014 Microsoft