IndexedDBKeyPath Class
A key path (https://w3c.github.io/IndexedDB/#key-path-construct): a string (identifiers separated by periods, or the empty string) or a list of strings.
public sealed class IndexedDBKeyPath : IEquatable<IndexedDBKeyPath>- Implements
Properties
| Name | Description |
|---|---|
| IsList | Gets whether the key path is a list. |
| Path | Gets the string key path, or null when the key path is a list. |
| Paths | Gets the strings of a list key path, or null when the key path is a string. |
IsList
IndexedDBBackend.csPaths
IndexedDBBackend.csGets the strings of a list key path, or null when the key path is a string.
public IReadOnlyList<string>? Paths { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(IndexedDBKeyPath?) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Determines whether the specified object is equal to the current object. |
| FromList(IEnumerable<string>) | Creates a list key path. |
| FromString(string) | Creates a string key path. |
| GetHashCode() | Serves as the default hash function. |
| ToString() | Returns the string key path, or the strings of the list separated by commas in brackets. |
Equals overloads
Equals(IndexedDBKeyPath?)
IndexedDBBackend.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(IndexedDBKeyPath? other)Parameters
otherIndexedDBKeyPath?- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
IndexedDBBackend.csFromList(IEnumerable<string>)
IndexedDBBackend.csCreates a list key path.
public static IndexedDBKeyPath FromList(IEnumerable<string> paths)FromString(string)
IndexedDBBackend.csCreates a string key path.
public static IndexedDBKeyPath FromString(string path)