Class StringPredicate
Defines a string operator for searching.
Inheritance
StringPredicate
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
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
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
Returns
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
Returns
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
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
Returns
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
Returns
Not(string)
Returns a predicate with the negated string.
Declaration
public static StringPredicate Not(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
Not(StringPredicate)
Returns a predicate with the negated string predicate.
Declaration
public static StringPredicate Not(StringPredicate stringPredicate)
Parameters
Returns
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
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
Returns
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
Returns
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
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
Returns
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
Returns
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
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