Interface IParameterManager
The parameter manager interface.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Abstractions.dll
Syntax
public interface IParameterManager : IEnumerable<KeyValuePair<string, object>>, IEnumerable, IEquatable<IParameterManager?>
Properties
View SourceFallbacks
Gets a list of fallback parameter managers.
Declaration
IReadOnlyList<IParameterManager>? Fallbacks { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<IParameterManager> |
this[string]
Retrieves a parameter value by name, checking the fallbacks if the parameter is not defined in this manager.
Declaration
object? this[string parameterName] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
string | parameterName | The parameter name. |
Property Value
Type | Description |
---|---|
object | The parameter value. |
OwnParameters
Gets a dictionary of parameters defined in this manager.
Declaration
IDictionary<string, object> OwnParameters { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, object> |
Methods
View SourceContainsKey(string)
Gets whether or not the parameter is defined in this manager or in its fallbacks.
Declaration
bool ContainsKey(string parameterName)
Parameters
Type | Name | Description |
---|---|---|
string | parameterName | The parameter name. |
Returns
Type | Description |
---|---|
bool | True if the parameter was found. |
RemoveOwnKey(string)
Removes the given parameter from this manager, while leaving fallbacks unchanged.
Declaration
void RemoveOwnKey(string parameterName)
Parameters
Type | Name | Description |
---|---|---|
string | parameterName | The parameter name. |