Constructor BsonRegularExpression
BsonRegularExpression(string)
Initializes a new instance of the BsonRegularExpression class.
Parameters
pattern
stringA regular expression pattern.
BsonRegularExpression(string, string)
Initializes a new instance of the BsonRegularExpression class.
Parameters
BsonRegularExpression(Regex)
Initializes a new instance of the BsonRegularExpression class.
Parameters
regex
RegexA Regex.