docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MetadataSearchCriteria

    Inheritance
    object
    BaseSearchCriteria
    MetadataSearchCriteria
    Inherited Members
    BaseSearchCriteria.PropertyName
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Assets
    Assembly: Unity.Cloud.Assets.dll
    Syntax
    public sealed class MetadataSearchCriteria : BaseSearchCriteria

    Constructors

    MetadataSearchCriteria(string, string)

    Declaration
    public MetadataSearchCriteria(string propertyName, string searchKey)
    Parameters
    Type Name Description
    string propertyName
    string searchKey

    Methods

    Clear()

    Clears the criteria fields.

    Declaration
    public override void Clear()
    Overrides
    BaseSearchCriteria.Clear()

    WithFuzzyValue(string, string)

    Sets the value of the metadata string field.

    Declaration
    public void WithFuzzyValue(string metadataFieldKey, string value)
    Parameters
    Type Name Description
    string metadataFieldKey

    The key of the metadata field.

    string value

    The approximate value of the string field.

    WithValue(string, string, SearchOptions)

    Sets the value of the metadata string field.

    Declaration
    public void WithValue(string metadataFieldKey, string value, StringSearchCriteria.SearchOptions options)
    Parameters
    Type Name Description
    string metadataFieldKey

    The key of the metadata field.

    string value

    The expected value of the string field.

    StringSearchCriteria.SearchOptions options

    The search options.

    WithValue(string, Regex)

    Sets the value of the metadata string field.

    Declaration
    public void WithValue(string metadataFieldKey, Regex pattern)
    Parameters
    Type Name Description
    string metadataFieldKey

    The key of the metadata field.

    Regex pattern

    The expected pattern of the string field.

    WithValue(string, MetadataValue)

    Sets the value of the metadata field.

    Declaration
    public void WithValue(string metadataFieldKey, MetadataValue value)
    Parameters
    Type Name Description
    string metadataFieldKey

    The key of the metadata field.

    MetadataValue value

    The expected value of the field.

    In This Article
    Back to top
    Copyright © 2024 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)