docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FieldFilter

    A field filter for querying an index

    Inheritance
    object
    FieldFilter
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.CloudSave
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class FieldFilter

    Constructors

    FieldFilter(string, object, OpEnum, bool)

    Initializes a new instance of the FieldFilter class.

    Declaration
    [Preserve]
    public FieldFilter(string key = null, object value = null, FieldFilter.OpEnum op = (FieldFilter.OpEnum)0, bool asc = false)
    Parameters
    Type Name Description
    string key

    Item key (required).

    object value

    The indexed Cloud Save value (required).

    FieldFilter.OpEnum op

    The comparison operator to use for the filter. The specified value is compared to the indexed value (lexicographically for string data, numerically for numerical data) using one of the following operators: * EQ - Equal * NE - Not Equal * LT - Less Than * LE - Less Than or Equal * GT - Greater Than * GE - Greater Than or Equal (required).

    bool asc

    Whether the field is sorted in ascending order (required).

    Properties

    Asc

    Whether the field is sorted in ascending order

    Declaration
    [Preserve]
    public bool Asc { get; set; }
    Property Value
    Type Description
    bool

    Whether the field is sorted in ascending order

    Key

    Item key

    Declaration
    [Preserve]
    public string Key { get; set; }
    Property Value
    Type Description
    string

    Item key

    Op

    The comparison operator to use for the filter. The specified value is compared to the indexed value (lexicographically for string data, numerically for numerical data) using one of the following operators: * EQ - Equal * NE - Not Equal * LT - Less Than * LE - Less Than or Equal * GT - Greater Than * GE - Greater Than or Equal

    Declaration
    [Preserve]
    public FieldFilter.OpEnum Op { get; set; }
    Property Value
    Type Description
    FieldFilter.OpEnum

    The comparison operator to use for the filter. The specified value is compared to the indexed value (lexicographically for string data, numerically for numerical data) using one of the following operators: * EQ - Equal * NE - Not Equal * LT - Less Than * LE - Less Than or Equal * GT - Greater Than * GE - Greater Than or Equal

    Value

    The indexed Cloud Save value

    Declaration
    [Preserve]
    public object Value { get; set; }
    Property Value
    Type Description
    object

    The indexed Cloud Save value

    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)