InteractionInputCollection Methods
Class Methods 8 members
A collection of interaction inputs that supports both indexed and name-based access.
Determines whether the collection contains an input with the specified name.
public sealed class InteractionInputCollection{ public bool ContainsName( string name) { // ... }}Parameters
name string The name to locate in the collection. Returns
bool true if the collection contains an input with the specified name; otherwise, false. Gets the value of the input with the specified name as a
Boolean. public sealed class InteractionInputCollection{ public bool GetBoolean( string name) { // ... }}Parameters
name string The name of the input. Returns
bool The value of the input parsed as a Boolean. Exceptions
InvalidOperationException Thrown when the input has no value. FormatException Thrown when the input value is not a valid Boolean. Gets the value of the input with the specified name as a
Double. public sealed class InteractionInputCollection{ public double GetDouble( string name) { // ... }}Parameters
name string The name of the input. Returns
double The value of the input parsed as a Double. Exceptions
InvalidOperationException Thrown when the input has no value. FormatException Thrown when the input value is not a valid Double. OverflowException Thrown when the input value is outside the range of a Double. Returns an enumerator that iterates through the collection.
public sealed class InteractionInputCollection{ public IEnumerator<InteractionInput> GetEnumerator() { // ... }}Returns
IEnumerator<InteractionInput> An enumerator that can be used to iterate through the collection. Gets the value of the input with the specified name as a
Int32. public sealed class InteractionInputCollection{ public int GetInt32( string name) { // ... }}Parameters
name string The name of the input. Returns
int The value of the input parsed as a Int32. Exceptions
InvalidOperationException Thrown when the input has no value. FormatException Thrown when the input value is not a valid Int32. OverflowException Thrown when the input value is outside the range of a Int32. Remarks
InputType.Number accepts floating point values. Use InteractionInputCollection.GetDouble for decimal values, or validate that the input is an integer before calling this method. Gets the value of the input with the specified name as a string.
public sealed class InteractionInputCollection{ public string? GetString( string name) { // ... }}Parameters
name string The name of the input. Returns
string? The value of the input, or null when the input has no value. Gets all inputs in declaration order.
public sealed class InteractionInputCollection{ public InteractionInput[] ToArray() { // ... }}Returns
InteractionInput[] A copy of the inputs in declaration order. Tries to get an input by its name.
public sealed class InteractionInputCollection{ public bool TryGetByName( string name, out InteractionInput? input) { // ... }}Parameters
name string The name of the input. input InteractionInput? When this method returns, contains the input with the specified name, if found; otherwise, null. Returns
bool true if an input with the specified name was found; otherwise, false.