Table of Contents

Constructor BsonRegularExpression

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

BsonRegularExpression(string)

Initializes a new instance of the BsonRegularExpression class.

public BsonRegularExpression(string pattern)

Parameters

pattern string

A regular expression pattern.

BsonRegularExpression(string, string)

Initializes a new instance of the BsonRegularExpression class.

public BsonRegularExpression(string pattern, string options)

Parameters

pattern string

A regular expression pattern.

options string

Regular expression options.

BsonRegularExpression(Regex)

Initializes a new instance of the BsonRegularExpression class.

public BsonRegularExpression(Regex regex)

Parameters

regex Regex

A Regex.