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.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax
public static class StringExtensions

The StringExtensions type exposes the following members.

Methods
  NameDescription
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 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