Click or drag to resize

StringExtensions Class

This static class holds methods that can be used to express MongoDB specific operations in LINQ queries.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.LinqStringExtensions

Namespace:  MongoDB.Driver.Linq
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public static class StringExtensions

The StringExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAnyStringIn(IEnumerableString, StringOrRegularExpression)
Returns true if any value in s is present in values (corresponds to the $in filter operator).
Public methodStatic memberAnyStringIn(IEnumerableString, IEnumerableStringOrRegularExpression)
Returns true if any value in s is present in values (corresponds to the $in filter operator).
Public methodStatic memberAnyStringNin(IEnumerableString, StringOrRegularExpression)
Returns true if any value in s is not present in values (corresponds to the $nin filter operator).
Public methodStatic memberAnyStringNin(IEnumerableString, IEnumerableStringOrRegularExpression)
Returns true if any value in s is not present in values (corresponds to the $nin filter operator).
Public methodStatic memberIndexOfBytes(String, String)
Searches a string for an occurrence of a substring and returns the UTF-8 byte index (zero-based) of the first occurrence.
Public methodStatic memberIndexOfBytes(String, String, Int32)
Searches a string for an occurrence of a substring and returns the UTF-8 byte index (zero-based) of the first occurrence.
Public methodStatic memberIndexOfBytes(String, String, Int32, Int32)
Searches a string for an occurrence of a substring and returns the UTF-8 byte index (zero-based) of the first occurrence.
Public methodStatic memberStringIn(String, StringOrRegularExpression)
Returns true if s is present in values (corresponds to the $in filter operator).
Public methodStatic memberStringIn(String, IEnumerableStringOrRegularExpression)
Returns true if s is present in values (corresponds to the $in filter operator).
Public methodStatic memberStringNin(String, StringOrRegularExpression)
Returns true if s is not present in values (corresponds to the $nin filter operator).
Public methodStatic memberStringNin(String, IEnumerableStringOrRegularExpression)
Returns true if s is not present in values (corresponds to the $nin filter operator).
Public methodStatic memberStrLenBytes
Returns the number of UTF-8 encoded bytes in the specified string.
Public methodStatic memberSubstrBytes
Returns the number of UTF-8 encoded bytes in the specified string.
Top
See Also