Table of Contents

Operator operator ==

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

operator ==(MongoCredential, MongoCredential)

Compares two MongoCredentials.

public static bool operator ==(MongoCredential lhs, MongoCredential rhs)

Parameters

lhs MongoCredential

The first MongoCredential.

rhs MongoCredential

The other MongoCredential.

Returns

bool

True if the two MongoCredentials are equal (or both null).