docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MetadataQueryBuilder

    A class that builds and executes a query to return a set of metadata.

    Inheritance
    object
    MetadataQueryBuilder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)