Table of Contents

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

key string

The 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

IEnumerable<string>

Methods

ContainsKey(string)

Determines whether the store contains a value with the specified key.

bool ContainsKey(string key)

Parameters

key string

The key to locate in the store.

Returns

bool

true if 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

key string

The key whose value to get.

Returns

T

The value associated with the specified key, cast to type T.

Type Parameters

T

The type to cast the value to.

Remove(string)

Removes the value with the specified key from the store.

bool Remove(string key)

Parameters

key string

The key of the value to remove.

Returns

bool

true if 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

key string

The key whose value to get.

value object

When this method returns, contains the value associated with the specified key; otherwise,null.

Returns

bool

true if the key was found; otherwise, false.