Class MetadataQueryBuilder
A class that builds and executes a query to return a set of metadata.
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public class MetadataQueryBuilder
Methods
ExecuteAsync(CancellationToken)
Executes the query and returns the results.
Declaration
public IAsyncEnumerable<KeyValuePair<string, MetadataValue>> ExecuteAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<KeyValuePair<string, MetadataValue>> | An async enumeration of key value pairs of a string key and MetadataValue value. |
SelectAll()
Sets the query to return metadata for all keys.
Declaration
public MetadataQueryBuilder SelectAll()
Returns
Type | Description |
---|---|
MetadataQueryBuilder | The calling MetadataQueryBuilder. |
SelectWhereKeyEquals(params string[])
Sets the query to return the metadata for the specified keys.
Declaration
public MetadataQueryBuilder SelectWhereKeyEquals(params string[] keys)
Parameters
Type | Name | Description |
---|---|---|
string[] | keys | The collection of desired keys. |
Returns
Type | Description |
---|---|
MetadataQueryBuilder | The calling MetadataQueryBuilder. |