Class MongoDBRef
- Namespace
- MongoDB.Driver
- Assembly
- MongoDB.Driver.dll
public class MongoDBRef : IEquatable<MongoDBRef>
- Inheritance
-
MongoDBRef
- Implements
-
- Inherited Members
-
Constructors
MongoDBRef(string, BsonValue)
public MongoDBRef(string collectionName, BsonValue id)
Parameters
collectionName string
id BsonValue
MongoDBRef(string, string, BsonValue)
public MongoDBRef(string databaseName, string collectionName, BsonValue id)
Parameters
databaseName string
collectionName string
id BsonValue
Properties
CollectionName
public string CollectionName { get; }
Property Value
- string
DatabaseName
public string DatabaseName { get; }
Property Value
- string
Id
public BsonValue Id { get; }
Property Value
- BsonValue
Methods
Equals(MongoDBRef)
public bool Equals(MongoDBRef rhs)
Parameters
rhs MongoDBRef
Returns
- bool
Equals(MongoDBRef, MongoDBRef)
public static bool Equals(MongoDBRef lhs, MongoDBRef rhs)
Parameters
lhs MongoDBRef
rhs MongoDBRef
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
obj object
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(MongoDBRef, MongoDBRef)
public static bool operator ==(MongoDBRef lhs, MongoDBRef rhs)
Parameters
lhs MongoDBRef
rhs MongoDBRef
Returns
- bool
operator !=(MongoDBRef, MongoDBRef)
public static bool operator !=(MongoDBRef lhs, MongoDBRef rhs)
Parameters
lhs MongoDBRef
rhs MongoDBRef
Returns
- bool