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
- writerIBsonWriter
- The writer. 
- namestring
- The name of the element. 
- regexBsonRegularExpression
- A BsonRegularExpression.