Retrieves a dictionary item by key.

public abstract ValueTask<IDictionaryItem> GetItemByKeyAsync(string itemKey, bool throwOnNotFound = False)
Returns:
ValueTask<IDictionaryItem>

Parameters

itemKey string

The key to retrieve the dictionary item for.

throwOnNotFound bool

True to throw a when a dictionary item with the specified key does not exist, otherwise returns null.

In this article