ContainerEnvironmentCollection Class
A collection of environment variables passed to a container.
public sealed class ContainerEnvironmentCollection : IEnumerable<KeyValuePair<string, string>>, IEnumerableProperties
| Name | Description |
|---|---|
| Count | Gets the number of environment variables in the collection. |
Methods
| Name | Description |
|---|---|
| Add(string, string) | Adds or replaces an environment variable. |
| Contains(string) | Determines whether an environment variable is defined. |
| GetEnumerator() | Returns an enumerator over the environment variables. |
| GetValue(string) | Gets the value of an environment variable. |
| Remove(string) | Removes an environment variable. |
| System.Collections.IEnumerable.GetEnumerator() |
Add(string, string)
ContainerEnvironmentCollection.csContains(string)
ContainerEnvironmentCollection.csGetEnumerator()
ContainerEnvironmentCollection.csReturns an enumerator over the environment variables.
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()Returns
IEnumerator<KeyValuePair<string, string>> An enumerator.