Method EnvSByte
| Improve this Doc View SourceEnvSByte(String, SByte)
Gets the value of a variable in sbyte
format.
Declaration
sbyte EnvSByte(string variable, sbyte defaultValue = 0)
Parameters
Type | Name | Description |
---|---|---|
String | variable | Environment variable name. |
SByte | defaultValue | A default value in case the variable is not set. |
Returns
Type | Description |
---|---|
SByte | A value of the environment variable in |
Remarks
If the environment variable is not set, the method will return the default value.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
FormatException |
|