Summary
Provide information about the current environment and platform.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Base Types
-
- Object
- FunctionSetBase
graph BT
Type-->Base0["FunctionSetBase"]
click Base0 "/api/NAnt.Core/FunctionSetBase"
Base0-->Base1["Object"]
Type["EnvironmentFunctions"]
class Type type-node
Syntax
[FunctionSet("environment", "Environment")]
public class EnvironmentFunctions : FunctionSetBase
Attributes
| Type | Description |
|---|---|
| FunctionSetAttribute | Indicates that class should be treated as a set of functions. |
Constructors
| Name | Summary |
|---|---|
| EnvironmentFunctions |
Initializes a new instance of the NAnt.Core.Functions.EnvironmentFunctions class.
|
Properties
| Name | Value | Summary |
|---|---|---|
| Project | Project |
Gets or sets the
NAnt.Core.FunctionSetBase.Project that this functionset will
reference.
Inherited from FunctionSetBase
|
Methods
| Name | Value | Summary |
|---|---|---|
| GetFolderPath |
string |
Gets the path to the system special folder identified by the
specified enumeration.
static
|
| GetMachineName |
string |
Gets the NetBIOS name of this local computer.
static
|
| GetOperatingSystem |
OperatingSystem |
Gets an
System.OperatingSystem object that represents the
current operating system.
static
|
| GetUserName |
string |
Gets the user name of the person who started the current thread.
static
|
| GetVariable |
string |
Returns the value of the specified environment variable.
static
|
| GetVersion |
Version |
Gets a
System.Version object that describes the major,
minor, build, and revision numbers of the Common Language Runtime.
static
|
| NewLine |
string |
Gets the newline string defined for this environment.
static
|
| VariableExists |
bool |
Gets a value indicating whether the specified environment variable
exists.
static
|
