Class SetCacheBehaviorCommandParameters
- Namespace
- WebDriverBiDi.Network
- Assembly
- WebDriverBiDi.dll
Provides parameters for the network.setCacheBehavior command.
public class SetCacheBehaviorCommandParameters : CommandParameters<SetCacheBehaviorCommandResult>
- Inheritance
-
SetCacheBehaviorCommandParameters
- Inherited Members
Constructors
SetCacheBehaviorCommandParameters(CacheBehavior)
Initializes a new instance of the SetCacheBehaviorCommandParameters class.
public SetCacheBehaviorCommandParameters(CacheBehavior cacheBehavior)
Parameters
cacheBehaviorCacheBehaviorThe CacheBehavior to set.
Properties
CacheBehavior
Gets or sets the behavior of the cache.
[JsonPropertyName("cacheBehavior")]
public CacheBehavior CacheBehavior { get; set; }
Property Value
Contexts
Gets the contexts, if any, for which to set the cache behavior.
[JsonIgnore]
public List<string> Contexts { get; }
Property Value
Remarks
The protocol requires this property, when present, to contain at least one entry. An empty list therefore means "not specified": the property is omitted from the JSON payload entirely, and an empty array is never sent. Add entries to the list to scope the command.
MethodName
Gets the method name of the command.
[JsonIgnore]
public override string MethodName { get; }