Class Vars
Allows for simple ad-hoc environment var passing to configuration
Inheritance
System.Object
Vars
Implements
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Conf
Assembly: Azos.dll
Syntax
[Serializable]
public sealed class Vars : IEnumerable<KeyValuePair<string, string>>, IEnumerable, IEnvironmentVariableResolver
Constructors
Vars(IDictionary<String, String>)
Declaration
public Vars(IDictionary<string, string> initial = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | initial |
Properties
Item[String]
Declaration
public string this[string name] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type | Description |
---|---|
System.String |
Methods
Clear()
Declaration
public void Clear()
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, System.String>> |
Remove(String)
Declaration
public bool Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Returns
Type | Description |
---|---|
System.Boolean |
ResolveEnvironmentVariable(String, out String)
Declaration
public bool ResolveEnvironmentVariable(string name, out string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | value |
Returns
Type | Description |
---|---|
System.Boolean |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable