Environment « Development « VB.Net
Windows Presentation Foundation
Environment Class provides information about current environment and platform
Sample for Environment class summary
Get Environment variables
Environment.CurrentDirectory Property gets or sets the fully qualified path of the current working directory.
Environment.Exit Method terminates this process and gives the underlying operating system the specified exit code.
Environment.ExitCode Property gets or sets the exit code of the process.
Environment.ExpandEnvironmentVariables Method replaces the name of each environment variable embedded in string
Environment.FailFast immediately terminates a process after writing a message to the Windows Application event log
Environment.GetCommandLineArgs returns a string array containing the command-line arguments for the current process.
Environment.GetEnvironmentVariables Method retrieves all environment variable names and their values
Environment.GetLogicalDrives returns the logical drives on the current computer.
Environment.MachineName Property gets the NetBIOS name of this local computer.
Environment.NewLine Property gets the newline string defined for this environment.
Environment.OSVersion Property gets platform identifier and version number.
Environment.ProcessorCount Property gets the number of processors on the current machine.
Environment.StackTrace Property gets current stack trace information.
Environment.SystemDirectory Property gets the fully qualified path of the system directory.
Environment.TickCount Property gets the number of milliseconds elapsed since the system started.
Environment.UserDomainName Property gets the network domain name associated with the current user.
Environment.UserInteractive Property tells whether the current process is running in user interactive mode.
Environment.UserName Property gets the user name of the person who is currently logged on to the Windows operating system.
Environment.Version Property describes the major, minor, build, and revision numbers of the common language runtime.
Environment.WorkingSet Property gets the amount of physical memory mapped to the process context.
Get the common language runtime version.
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.