docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StringPredicate

    Defines a string operator for searching.

    Inheritance
    object
    StringPredicate
    Inherited Members
    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 StringPredicate

    Constructors

    StringPredicate(string)

    Declaration
    public StringPredicate(string value)
    Parameters
    Type Name Description
    string value

    StringPredicate(string, StringSearchOption)

    Initializes a string predicate with the specified string and option.

    Declaration
    public StringPredicate(string value, StringSearchOption searchOption)
    Parameters
    Type Name Description
    string value

    The string to match.

    StringSearchOption searchOption

    The matching option.

    StringPredicate(Regex)

    Initializes a string predicate with the specified string pattern.

    Declaration
    public StringPredicate(Regex regex)
    Parameters
    Type Name Description
    Regex regex

    Methods

    And(string)

    Returns the predicate result of applying the AND operator to this and the specified string.

    Declaration
    public StringPredicate And(string rhs)
    Parameters
    Type Name Description
    string rhs
    Returns
    Type Description
    StringPredicate

    And(string, StringSearchOption)

    Returns the predicate result of applying the AND operator to this and the specified string.

    Declaration
    public StringPredicate And(string rhs, StringSearchOption searchOption)
    Parameters
    Type Name Description
    string rhs
    StringSearchOption searchOption
    Returns
    Type Description
    StringPredicate

    And(StringPredicate)

    Returns the predicate result of applying the AND operator to this and the specified string predicate.

    Declaration
    public StringPredicate And(StringPredicate rhs)
    Parameters
    Type Name Description
    StringPredicate rhs
    Returns
    Type Description
    StringPredicate

    AndNot(string)

    Returns the predicate result of applying the AND operator to this and the negated string.

    Declaration
    public StringPredicate AndNot(string rhs)
    Parameters
    Type Name Description
    string rhs
    Returns
    Type Description
    StringPredicate

    AndNot(string, StringSearchOption)

    Returns the predicate result of applying the AND operator to this and the negated string.

    Declaration
    public StringPredicate AndNot(string rhs, StringSearchOption searchOption)
    Parameters
    Type Name Description
    string rhs
    StringSearchOption searchOption
    Returns
    Type Description
    StringPredicate

    AndNot(StringPredicate)

    Returns the predicate result of applying the AND operator to this and the negated string predicate.

    Declaration
    public StringPredicate AndNot(StringPredicate rhs)
    Parameters
    Type Name Description
    StringPredicate rhs
    Returns
    Type Description
    StringPredicate

    Not(string)

    Returns a predicate with the negated string.

    Declaration
    public static StringPredicate Not(string value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    StringPredicate

    Not(StringPredicate)

    Returns a predicate with the negated string predicate.

    Declaration
    public static StringPredicate Not(StringPredicate stringPredicate)
    Parameters
    Type Name Description
    StringPredicate stringPredicate
    Returns
    Type Description
    StringPredicate

    Or(string)

    Returns the predicate result of applying the OR operator to this and the specified string.

    Declaration
    public StringPredicate Or(string rhs)
    Parameters
    Type Name Description
    string rhs
    Returns
    Type Description
    StringPredicate

    Or(string, StringSearchOption)

    Returns the predicate result of applying the OR operator to this and the specified string.

    Declaration
    public StringPredicate Or(string rhs, StringSearchOption searchOption)
    Parameters
    Type Name Description
    string rhs
    StringSearchOption searchOption
    Returns
    Type Description
    StringPredicate

    Or(StringPredicate)

    Returns the predicate result of applying the OR operator to this and the specified string predicate.

    Declaration
    public StringPredicate Or(StringPredicate rhs)
    Parameters
    Type Name Description
    StringPredicate rhs
    Returns
    Type Description
    StringPredicate

    OrNot(string)

    Returns the predicate result of applying the OR operator to this and the negated string.

    Declaration
    public StringPredicate OrNot(string rhs)
    Parameters
    Type Name Description
    string rhs
    Returns
    Type Description
    StringPredicate

    OrNot(string, StringSearchOption)

    Returns the predicate result of applying the OR operator to this and the negated string.

    Declaration
    public StringPredicate OrNot(string rhs, StringSearchOption searchOption)
    Parameters
    Type Name Description
    string rhs
    StringSearchOption searchOption
    Returns
    Type Description
    StringPredicate

    OrNot(StringPredicate)

    Returns the predicate result of applying the OR operator to this and the negated string predicate.

    Declaration
    public StringPredicate OrNot(StringPredicate rhs)
    Parameters
    Type Name Description
    StringPredicate rhs
    Returns
    Type Description
    StringPredicate

    Operators

    explicit operator StringPredicate(string)

    Explicitly converts a string to a string predicate.

    Declaration
    public static explicit operator StringPredicate(string a)
    Parameters
    Type Name Description
    string a
    Returns
    Type Description
    StringPredicate

    implicit operator StringPredicate(Regex)

    Implicitly converts a regex to a string predicate.

    Declaration
    public static implicit operator StringPredicate(Regex a)
    Parameters
    Type Name Description
    Regex a
    Returns
    Type Description
    StringPredicate
    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)