Table of Contents

Class BsonRegularExpression

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Represents a BSON regular expression value.

[Serializable]
public class BsonRegularExpression : BsonValue, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonRegularExpression>, IEquatable<BsonRegularExpression>
Inheritance
BsonRegularExpression
Implements
Inherited Members
Extension Methods

Constructors

BsonRegularExpression(string)

Initializes a new instance of the BsonRegularExpression class.

BsonRegularExpression(string, string)

Initializes a new instance of the BsonRegularExpression class.

BsonRegularExpression(Regex)

Initializes a new instance of the BsonRegularExpression class.

Properties

BsonType

Gets the BsonType of this BsonValue.

Options

Gets the regular expression options.

Pattern

Gets the regular expression pattern.

Methods

CompareTo(BsonRegularExpression)

Compares this BsonRegularExpression to another BsonRegularExpression.

CompareTo(BsonValue)

Compares the BsonRegularExpression to another BsonValue.

Create(object)

Creates a new BsonRegularExpression.

Equals(BsonRegularExpression)

Compares this BsonRegularExpression to another BsonRegularExpression.

Equals(object)

Compares this BsonRegularExpression to another object.

GetHashCode()

Gets the hash code.

ToRegex()

Converts the BsonRegularExpression to a Regex.

ToString()

Returns a string representation of the value.

Operators

operator ==(BsonRegularExpression, BsonRegularExpression)

Compares two BsonRegularExpression values.

implicit operator BsonRegularExpression(string)

Converts a string to a BsonRegularExpression.

implicit operator BsonRegularExpression(Regex)

Converts a Regex to a BsonRegularExpression.

operator !=(BsonRegularExpression, BsonRegularExpression)

Compares two BsonRegularExpression values.