Environment Class¶
This class provides access to the environment variables and provides facilities to specify where to load the underlying AMPL interpreter.
- Namespace
ampl
- Assemblies
- AMPL
Inheritance Hierarchy¶
System.Object
ampl.Environment
Syntax¶
public class Environment : IEnumerable<KeyValuePair<string, string>>, IEnumerable, IDisposable
-
class
ampl.
Environment
Constructors¶
-
Environment
()¶ public Environment()
-
Environment
(System.String) public Environment(string binaryDirectory)
-
Environment
(ampl.Environment) public Environment(Environment other)
-
Properties¶
-
BinDir
()¶ Return type: System.String public string BinDir { get; set; }
-
ampl.Environment.Item[System.String]
Access and sets values
Arguments: - key (System.String) – Environment variable to get or set
Return type: System.String
Returns: Its value if present, null otherwise
public string this[string key] { get; set; }
-
Methods¶
-
Clone
(ampl.Environment)¶ Return type: ampl.Environment public Environment Clone(Environment other)
-
Dispose
()¶ public virtual void Dispose()
-
Finalize
()¶ protected void Finalize()
-
GetEnumerator
()¶ Get the enumerator for the map of environment variables
Return type: System.Collections.Generic.IEnumerator<System.Collections.Generic.IEnumerator`1>{System.Collections.Generic.KeyValuePair<System.Collections.Generic.KeyValuePair`2>{System.String<System.String>, System.String<System.String>}} public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
-
GetEnumerator
() Get the enumerator for the map of environment variables
Return type: System.Collections.IEnumerator IEnumerator IEnumerable.GetEnumerator()
-
ToString
()¶ Return type: System.String public override string ToString()
-