Interface ISearchExpression | Quick Search | 2.0.0
docs.unity3d.com
    Show / Hide Table of Contents

    Interface ISearchExpression

    A Search Expression can be populated with variables and providers. It can then be evaluated to yield a list of SearchItem

    Inherited Members
    ISearchList.pending
    ISearchList.context
    ISearchList.Fetch()
    ISearchList.AddItems(IEnumerable<SearchItem>)
    ISearchList.InsertRange(Int32, IEnumerable<SearchItem>)
    ISearchList.GetRange(Int32, Int32)
    ISearchList.Select<TResult>(Func<SearchItem, TResult>)
    Namespace: Unity.QuickSearch
    Syntax
    public interface ISearchExpression : ISearchList, ICollection<SearchItem>, IEnumerable<SearchItem>, IEnumerable, IDisposable

    Methods

    Evaluate()

    Evaluate the SearchExpression.

    Declaration
    ISearchList Evaluate()
    Returns
    Type Description
    ISearchList

    Returns the list of Items.

    SetProvider(String, SearchProvider)

    Assign a concrete provider in a SearchExpression.

    Declaration
    ISearchExpression SetProvider(string name, SearchProvider provider)
    Parameters
    Type Name Description
    String name

    Name of the Provider

    SearchProvider provider

    Actual provider

    Returns
    Type Description
    ISearchExpression

    SetValue(String, Object)

    Set the value of a variable with a specific name.

    Declaration
    ISearchExpression SetValue(string name, object value)
    Parameters
    Type Name Description
    String name

    Name of the variable to assign to.

    Object value

    Value to bind to the variable.

    Returns
    Type Description
    ISearchExpression
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023