Table of Contents

Method SubstrBytes

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.dll

SubstrBytes(string, int, int)

Returns the number of UTF-8 encoded bytes in the specified string.

public static string SubstrBytes(this string s, int startIndex, int length)

Parameters

s string

The string.

startIndex int

The start index.

length int

The length.

Returns

string

The number of UTF-8 bytes.