ContainerCommandCollection Class
An ordered collection of command tokens (used for the entrypoint or command of a container).
public sealed class ContainerCommandCollection : IEnumerable<string>, IEnumerable- Implements
Properties
| Name | Description |
|---|---|
| Count | Gets the number of tokens in the collection. |
Methods
| Name | Description |
|---|---|
| Add(string) | Appends a token. |
| AddRange(IEnumerable<string>) | Appends multiple tokens. |
| Clear() | Removes all tokens. |
| GetEnumerator() | Returns an enumerator over the tokens. |
| System.Collections.IEnumerable.GetEnumerator() |
Add(string)
ContainerCommandCollection.csAddRange(IEnumerable<string>)
ContainerCommandCollection.csAppends multiple tokens.
public void AddRange(IEnumerable<string> values)Parameters
valuesIEnumerable<string>- The tokens to append.
Removes all tokens.
public void Clear()GetEnumerator()
ContainerCommandCollection.csReturns an enumerator over the tokens.
public IEnumerator<string> GetEnumerator()Returns
IEnumerator<string> An enumerator.