InteractionInputCollection
Class sealed net8.0
A collection of interaction inputs that supports both indexed and name-based access.
namespace Aspire.Hosting;
public sealed class InteractionInputCollection : System.Collections.Generic.IEnumerable<Aspire.Hosting.InteractionInput>, System.Collections.Generic.IReadOnlyCollection<Aspire.Hosting.InteractionInput>, System.Collections.Generic.IReadOnlyList<Aspire.Hosting.InteractionInput>, System.Collections.IEnumerable{ // ...} IEnumerable<InteractionInput>IReadOnlyCollection<InteractionInput>IReadOnlyList<InteractionInput>IEnumerable
13 members
Constructors1
Section titled ConstructorsInteractionInputCollection(IReadOnlyList<InteractionInput>) Initializes a new instance of the
InteractionInputCollection class. Properties2
Section titled PropertiesCountgetint Gets the number of inputs in the collection.
NamesgetIEnumerable<string> Gets the names of all inputs in the collection.
Methods8
Section titled MethodsContainsName(string)bool Determines whether the collection contains an input with the specified name.
GetBoolean(string)bool Gets the value of the input with the specified name as a
Boolean. GetDouble(string)double Gets the value of the input with the specified name as a
Double. GetEnumerator Returns an enumerator that iterates through the collection.
GetInt32(string)int Gets the value of the input with the specified name as a
Int32. GetString(string)string? Gets the value of the input with the specified name as a string.
ToArrayats exportInteractionInput[] Gets all inputs in declaration order.
TryGetByName(string, InteractionInput?)bool Tries to get an input by its name.