Table of Contents

Class ReceivedDataDictionary

Namespace
WebDriverBiDi
Assembly
WebDriverBiDi.dll

A read-only dictionary containing a dictionary of additional data from a command result. The proper workflow for this class is that additional data is received from the protocol as a dictionary with string keys, and object values. The entries in that dictionary are then intentionally mutated to be read-only, so that they cannot be updated by the user.

public sealed class ReceivedDataDictionary : ReadOnlyDictionary<string, object?>, IDictionary<string, object?>, ICollection<KeyValuePair<string, object?>>, IDictionary, ICollection, IReadOnlyDictionary<string, object?>, IReadOnlyCollection<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>, IEnumerable
Inheritance
ReceivedDataDictionary
Implements
Inherited Members

Constructors

ReceivedDataDictionary(Dictionary<string, object?>)

Initializes a new instance of the ReceivedDataDictionary class.

public ReceivedDataDictionary(Dictionary<string, object?> dictionary)

Parameters

dictionary Dictionary<string, object>

The dictionary of additional data.

Properties

EmptyDictionary

Gets an empty dictionary.

public static ReceivedDataDictionary EmptyDictionary { get; }

Property Value

ReceivedDataDictionary

Methods

ToWritableCopy()

Gets a writable copy of this dictionary.

public Dictionary<string, object?> ToWritableCopy()

Returns

Dictionary<string, object>

A writable dictionary containing a copy of the data in this ReceivedDataDictionary.