Click or drag to resize

MongoDBRef Class

Represents a DBRef (a convenient way to refer to a document).
Inheritance Hierarchy
SystemObject
  MongoDB.DriverMongoDBRef

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntax
public class MongoDBRef : IEquatable<MongoDBRef>

The MongoDBRef type exposes the following members.

Constructors
  NameDescription
Public methodMongoDBRef(String, BsonValue)
Creates a MongoDBRef.
Public methodMongoDBRef(String, String, BsonValue)
Creates a MongoDBRef.
Top
Properties
  NameDescription
Public propertyCollectionName
Gets the name of the collection that contains the document.
Public propertyDatabaseName
Gets the name of the database that contains the document.
Public propertyId
Gets the Id of the document.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether this instance and a specified object, which must also be a MongoDBRef object, have the same value.
(Overrides ObjectEquals(Object).)
Public methodEquals(MongoDBRef)
Determines whether this instance and another specified MongoDBRef object have the same value.
Public methodStatic memberEquals(MongoDBRef, MongoDBRef)
Determines whether two specified MongoDBRef objects have the same value.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this MongoDBRef object.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string representation of the value.
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two specified MongoDBRef objects have the same value.
Public operatorStatic memberInequality
Determines whether two specified MongoDBRef objects have different values.
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also