Interface IIdValue
- Namespace
- GroupeIsa.Neos.Designer.UIAbstractions
- Assembly
- GroupeIsa.Neos.Designer.UIAbstractions.dll
Represents a key-value store interface for managing values identified by string keys.
public interface IIdValue
Properties
this[string]
Gets or sets the value associated with the specified key.
object this[string key] { get; set; }
Parameters
keystringThe key of the value to get or set.
Property Value
- object
The value associated with the specified key.
Keys
Gets an enumerable collection of all keys present in the store.
IEnumerable<string> Keys { get; }
Property Value
Methods
ContainsKey(string)
Determines whether the store contains a value with the specified key.
bool ContainsKey(string key)
Parameters
keystringThe key to locate in the store.
Returns
- bool
trueif the store contains a value with the specified key; otherwise,false.
GetValue<T>(string)
Retrieves the value associated with the specified key and casts it to the specified type.
T GetValue<T>(string key)
Parameters
keystringThe key whose value to get.
Returns
- T
The value associated with the specified key, cast to type
T.
Type Parameters
TThe type to cast the value to.
Remove(string)
Removes the value with the specified key from the store.
bool Remove(string key)
Parameters
keystringThe key of the value to remove.
Returns
- bool
trueif the value was successfully removed; otherwise,false.
TryGetValue(string, out object?)
Attempts to retrieve the value associated with the specified key.
bool TryGetValue(string key, out object? value)
Parameters
keystringThe key whose value to get.
valueobjectWhen this method returns, contains the value associated with the specified key; otherwise,
null.
Returns
- bool
trueif the key was found; otherwise,false.