Class SharedStorageWorklet
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalSharedStorageWorklet 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.
Constructors
SharedStorageWorklet()
public SharedStorageWorklet()
Methods
Run(string, SharedStorageRunOperationMethodOptions)
[Value("run")]
public Task<dynamic> Run(string name, SharedStorageRunOperationMethodOptions options = null)
Parameters
namestringoptionsSharedStorageRunOperationMethodOptions
Returns
- Task<dynamic>
SelectURL(string, List<SharedStorageUrlWithMetadata>, SharedStorageRunOperationMethodOptions)
[Value("selectURL")]
public Task<Union142> SelectURL(string name, List<SharedStorageUrlWithMetadata> urls, SharedStorageRunOperationMethodOptions options = null)
Parameters
namestringurlsList<SharedStorageUrlWithMetadata>optionsSharedStorageRunOperationMethodOptions