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