Class StorageKeyPartitionDescriptor
- Namespace
- WebDriverBiDi.Storage
- Assembly
- WebDriverBiDi.dll
Object containing a descriptor for a partition key for a browser cookie using a storage key.
public class StorageKeyPartitionDescriptor : PartitionDescriptor
- Inheritance
-
StorageKeyPartitionDescriptor
- Inherited Members
Constructors
StorageKeyPartitionDescriptor()
Initializes a new instance of the StorageKeyPartitionDescriptor class.
public StorageKeyPartitionDescriptor()
Properties
AdditionalData
Gets the dictionary containing additional data associated with this partition key descriptor.
[JsonExtensionData]
public Dictionary<string, object?> AdditionalData { get; }
Property Value
Remarks
An entry may not reuse the name of a property this type already serializes; doing so would write that name twice in the same JSON object, and a JSON object with a duplicate name has no defined meaning. Sending a command that contains such an entry throws WebDriverBiDiSerializationException rather than emitting the ambiguous payload. Set the typed property instead.
SourceOrigin
Gets or sets the source origin for this partition key descriptor.
[JsonPropertyName("sourceOrigin")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? SourceOrigin { get; set; }
Property Value
Type
Gets the type of the partition key descriptor.
[JsonPropertyName("type")]
public override string Type { get; }
Property Value
UserContextId
Gets or sets the ID of the user context for this partition key descriptor.
[JsonPropertyName("userContext")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? UserContextId { get; set; }