Table of Contents

Class SharedStorageWorklet

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The SharedStorageWorklet interface of the {{domxref("Shared Storage API", "Shared Storage API", "", "nocode")}} represents the shared storage worklet for the current origin.
[Value("SharedStorageWorklet")]
public class SharedStorageWorklet : Worklet
Inheritance
SharedStorageWorklet
Inherited Members

Remarks

SharedStorageWorklet does not have its own properties or methods. Rather, it inherits the AddModule(string, WorkletOptions) method from the Worklet interface. This method is used for adding a module.

Unlike a regular Worklet:

SharedStorageWorklet is accessed via WindowSharedStorage.Worklet.

-Shared Storage API

See also on MDN

Constructors

SharedStorageWorklet()

public SharedStorageWorklet()

Methods

Run(string, SharedStorageRunOperationMethodOptions)

[Value("run")]
public Task<dynamic> Run(string name, SharedStorageRunOperationMethodOptions options = null)

Parameters

name string
options SharedStorageRunOperationMethodOptions

Returns

Task<dynamic>

SelectURL(string, List<SharedStorageUrlWithMetadata>, SharedStorageRunOperationMethodOptions)

[Value("selectURL")]
public Task<Union142> SelectURL(string name, List<SharedStorageUrlWithMetadata> urls, SharedStorageRunOperationMethodOptions options = null)

Parameters

name string
urls List<SharedStorageUrlWithMetadata>
options SharedStorageRunOperationMethodOptions

Returns

Task<Union142>