W3cubDocs

/Haxe C#

Environment

package cs.system

@:abstract@:final@:libType@:csNative@:native("System.Environment") Available on cs

Static variables

static read only CommandLine:String

static CurrentDirectory:String

static ExitCode:Int

static read only HasShutdownStarted:Bool

static read only MachineName:String

static read only NewLine:String

static read only OSVersion:OperatingSystem

static read only ProcessorCount:Int

static read only StackTrace:String

static read only SystemDirectory:String

static read only TickCount:Int

static read only UserDomainName:String

static read only UserInteractive:Bool

static read only UserName:String

static read only Version:Version

static read only WorkingSet:Int64

Static methods

@:final @:overload static Exit (exitCode:Int):Void

@:final @:overload static ExpandEnvironmentVariables (name:String):String

@:final @:overload static FailFast (message:String):Void

@:final @:overload static GetCommandLineArgs ():NativeArray<String>

@:final @:overload static GetEnvironmentVariable (variable:String):String

@:final @:overload static GetEnvironmentVariable (variable:String, target:EnvironmentVariableTarget):String

@:final @:overload static GetEnvironmentVariables ():IDictionary

@:final @:overload static GetEnvironmentVariables (target:EnvironmentVariableTarget):IDictionary

@:final @:overload static GetFolderPath (folder:Environment_SpecialFolder):String

@:final @:overload static GetLogicalDrives ():NativeArray<String>

@:final @:overload static SetEnvironmentVariable (variable:String, value:String):Void

@:final @:overload static SetEnvironmentVariable (variable:String, value:String, target:EnvironmentVariableTarget):Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cs/system/Environment.html