Skip to content
Docs Try Aspire

InteractionInputCollection Methods

Class Methods 3 members
A collection of interaction inputs that supports both indexed and name-based access.
ContainsName(string) Section titled ContainsName(string) bool
Determines whether the collection contains an input with the specified name.
public sealed class InteractionInputCollection
{
public bool ContainsName(
string name)
{
// ...
}
}
name string The name to locate in the collection.
bool true if the collection contains an input with the specified name; otherwise, false.
Returns an enumerator that iterates through the collection.
public sealed class InteractionInputCollection
{
public IEnumerator<InteractionInput> GetEnumerator()
{
// ...
}
}
IEnumerator<InteractionInput> An enumerator that can be used to iterate through the collection.
TryGetByName(string, InteractionInput?) Section titled TryGetByName(string, InteractionInput?) bool
Tries to get an input by its name.
public sealed class InteractionInputCollection
{
public bool TryGetByName(
string name,
out InteractionInput? input)
{
// ...
}
}
name string The name of the input.
input InteractionInput? When this method returns, contains the input with the specified name, if found; otherwise, null.
bool true if an input with the specified name was found; otherwise, false.