Environment Class ================= This class provides access to the environment variables and provides facilities to specify where to load the underlying AMPL interpreter. Namespace :dn:ns:`ampl` Assemblies * AMPL ---- .. contents:: :local: Inheritance Hierarchy --------------------- * :dn:cls:`System.Object` * :dn:cls:`ampl.Environment` Syntax ------ .. code-block:: csharp public class Environment : IEnumerable>, IEnumerable .. dn:class:: ampl.Environment :hidden: .. dn:class:: ampl.Environment Methods ------- .. dn:class:: ampl.Environment :noindex: :hidden: .. dn:method:: ampl.Environment.GetEnumerator() Get the enumerator for the map of environment variables :rtype: System.Collections.Generic.IEnumerator{System.Collections.Generic.KeyValuePair{System.String, System.String}} .. code-block:: csharp public IEnumerator> GetEnumerator() .. dn:method:: ampl.Environment.System.Collections.IEnumerable.GetEnumerator() Get the enumerator for the map of environment variables :rtype: System.Collections.IEnumerator .. code-block:: csharp IEnumerator IEnumerable.GetEnumerator() Properties ---------- .. dn:class:: ampl.Environment :noindex: :hidden: .. dn:property:: ampl.Environment.Item[System.String] Access and sets values :param key: Environment variable to get or set :type key: System.String :rtype: System.String :return: Its value if present, null otherwise .. code-block:: csharp public string this[string key] { get; set; }