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
System.Object
  MongoDB.Driver.Linq.StringExtensions

Namespace:  MongoDB.Driver.Linq
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public static class StringExtensions

The StringExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAnyStringIn(IEnumerable<String>,StringOrRegularExpression[])
Returns true if any value in s is present in values (corresponds to the $in filter operator).
Public methodStatic memberAnyStringIn(IEnumerable<String>, IEnumerable<StringOrRegularExpression>)
Returns true if any value in s is present in values (corresponds to the $in filter operator).
Public methodStatic memberAnyStringNin(IEnumerable<String>,StringOrRegularExpression[])
Returns true if any value in s is not present in values (corresponds to the $nin filter operator).
Public methodStatic memberAnyStringNin(IEnumerable<String>, IEnumerable<StringOrRegularExpression>)
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, IEnumerable<StringOrRegularExpression>)
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, IEnumerable<StringOrRegularExpression>)
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