| ElectionId Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: MongoDB.Driver.Core.Clusters
 Syntax
SyntaxThe ElectionId type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | ElectionId | 
            Initializes a new instance of the ElectionId class.
             | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | CompareTo | 
            Compares the current object with another object of the same type.
             | 
|  | Equals(Object) | 
            Determines whether the specified Object, is equal to this instance.
            (Overrides ObjectEquals(Object).) | 
|  | Equals(ElectionId) | 
            Indicates whether the current object is equal to another object of the same type.
             | 
|  | GetHashCode | 
            Returns a hash code for this instance.
            (Overrides ObjectGetHashCode.) | 
|  | GetType | Gets the Type of the current instance.(Inherited from Object.) | 
|  | ToString | 
            Returns a String that represents this instance.
            (Overrides ObjectToString.) | 
 Extension Methods
Extension Methods| Name | Description | |
|---|---|---|
|  | ToBson | 
            Serializes an object to a BSON byte array.
            (Defined by BsonExtensionMethods.) | 
|  | ToBsonDocument | 
            Serializes an object to a BsonDocument.
            (Defined by BsonExtensionMethods.) | 
|  | ToJson | 
            Serializes an object to a JSON string.
            (Defined by BsonExtensionMethods.) | 
 See Also
See Also