Method WriteRegularExpression
WriteRegularExpression(IBsonWriter, string, BsonRegularExpression)
Writes a BSON regular expression element to the writer.
public static void WriteRegularExpression(this IBsonWriter writer, string name, BsonRegularExpression regex)
Parameters
writer
IBsonWriterThe writer.
name
stringThe name of the element.
regex
BsonRegularExpressionA BsonRegularExpression.