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

NameDescription
CountGets the number of tokens in the collection.

Gets the number of tokens in the collection.

public int Count { get; }

Property value

int

Methods

NameDescription
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()

Appends a token.

public void Add(string value)

Parameters

value string
The token to append.

AddRange(IEnumerable<string>)

ContainerCommandCollection.cs

Appends multiple tokens.

public void AddRange(IEnumerable<string> values)

Parameters

values IEnumerable<string>
The tokens to append.

Removes all tokens.

public void Clear()

Returns an enumerator over the tokens.

public IEnumerator<string> GetEnumerator()

Returns

IEnumerator<string> An enumerator.

System.Collections.IEnumerable.GetEnumerator()

ContainerCommandCollection.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.