Environment Properties

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The Environment type exposes the following members.

Properties

  Name Description
Public propertyStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 CurrentDirectory When called by trusted applications, gets the fully qualified path of the current working directory.
Public propertyStatic member ExitCode Gets or sets the exit code of the process.
Public propertyStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 HasShutdownStarted Gets a value indicating whether the common language runtime is shutting down or the current application domain is unloading.
Public propertyStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 NewLine Gets the newline string defined for this environment.
Public propertyStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 OSVersion Gets an OperatingSystem object that contains the current platform identifier and version number.
Public propertyStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ProcessorCount Gets the number of processors on the current machine.
Public propertyStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 TickCount Gets the number of milliseconds elapsed since the system started.
Public propertyStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Version Gets a Version object that describes the major, minor, build, and revision numbers of the common language runtime.

Top

See Also

Reference