Class StorageAccessHandle
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The StorageAccessHandle interface represents access to unpartitioned state granted by a call to RequestStorageAccess().
[Value("StorageAccessHandle")]
public class StorageAccessHandle
- Inheritance
-
StorageAccessHandle
- Inherited Members
Remarks
Constructors
StorageAccessHandle()
public StorageAccessHandle()
Properties
Caches
The caches property of the StorageAccessHandle interface returns an unpartitioned CacheStorage object if access was granted, and throws a SecurityError DOMException otherwise.
[Value("caches")]
public CacheStorage Caches { get; }
Property Value
- CacheStorage
A CacheStorage object.
Remarks
IndexedDB
The indexedDB property of the StorageAccessHandle interface returns an unpartitioned IDBFactory object if access was granted, and throws a SecurityError DOMException otherwise.
[Value("indexedDB")]
public IDBFactory IndexedDB { get; }
Property Value
- IDBFactory
A IDBFactory object.
Remarks
LocalStorage
The localStorage property of the StorageAccessHandle interface returns an unpartitioned local Storage object if access was granted, and throws a SecurityError DOMException otherwise.
[Value("localStorage")]
public Storage LocalStorage { get; }
Property Value
Remarks
Locks
The locks property of the StorageAccessHandle interface returns an unpartitioned session LockManager object if access was granted, and throws a SecurityError DOMException otherwise.
[Value("locks")]
public LockManager Locks { get; }
Property Value
- LockManager
A LockManager object.
Remarks
SessionStorage
The sessionStorage property of the StorageAccessHandle interface returns an unpartitioned session Storage object if access was granted, and throws a SecurityError DOMException otherwise.
[Value("sessionStorage")]
public Storage SessionStorage { get; }
Property Value
Remarks
Methods
BroadcastChannel(string)
NOTE
See BroadcastChannel(string) to understand usage.
[Value("BroadcastChannel")]
public BroadcastChannel BroadcastChannel(string name)
Parameters
namestring
Returns
- BroadcastChannel
An unpartitioned BroadcastChannel(string) object.
Remarks
CreateObjectURL(Union124)
NOTE
See CreateObjectURL(Union46) to understand usage.
[Value("createObjectURL")]
public string CreateObjectURL(Union124 obj)
Parameters
objUnion124
Returns
- string
A string containing an unpartitioned object URL that can be used to reference the contents of the specified source
object.
Remarks
Estimate()
NOTE
See Estimate() to understand usage.
[Value("estimate")]
public Task<StorageEstimate> Estimate()
Returns
- Task<StorageEstimate>
A {{jsxref("Promise")}} that fulfills with an unpartitioned Estimate() object.
Remarks
GetDirectory()
NOTE
See GetDirectory() to understand usage.
[Value("getDirectory")]
public Task<FileSystemDirectoryHandle> GetDirectory()
Returns
- Task<FileSystemDirectoryHandle>
A {{jsxref("Promise")}} that fulfills with an unpartitioned FileSystemDirectoryHandle object.
Remarks
RevokeObjectURL(string)
NOTE
See RevokeObjectURL(string) to understand usage.
[Value("revokeObjectURL")]
public GlobalObject.Undefined RevokeObjectURL(string url)
Parameters
urlstring
Returns
Remarks
SharedWorker(string, Union125)
NOTE
See SharedWorker(Union97, Union98) to understand usage.
[Value("SharedWorker")]
public SharedWorker SharedWorker(string scriptURL, Union125 options = default)
Parameters
Returns
- SharedWorker
An unpartitioned SharedWorker(string, Union125) object.