MongoNotPrimaryException Class |
Namespace: MongoDB.Driver
The MongoNotPrimaryException type exposes the following members.
| Name | Description | |
|---|---|---|
| MongoNotPrimaryException(SerializationInfo, StreamingContext) |
Initializes a new instance of the MongoNotPrimaryException class.
| |
| MongoNotPrimaryException(ConnectionId, BsonDocument) |
Initializes a new instance of the MongoNotPrimaryException class.
|
| Name | Description | |
|---|---|---|
| ConnectionId |
Gets the connection identifier.
(Inherited from MongoServerException.) | |
| Data | (Inherited from Exception.) | |
| HelpLink | (Inherited from Exception.) | |
| HResult | (Inherited from Exception.) | |
| InnerException | (Inherited from Exception.) | |
| Message | (Inherited from Exception.) | |
| Result |
Gets the result from the server.
| |
| Source | (Inherited from Exception.) | |
| StackTrace | (Inherited from Exception.) | |
| TargetSite | (Inherited from Exception.) |
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetBaseException | (Inherited from Exception.) | |
| GetHashCode | (Inherited from Object.) | |
| GetObjectData | (Overrides MongoServerExceptionGetObjectData(SerializationInfo, StreamingContext).) | |
| GetType | (Inherited from Exception.) | |
| MemberwiseClone | (Inherited from Object.) | |
| ToString | (Inherited from Exception.) |
| Name | Description | |
|---|---|---|
| SerializeObjectState | (Inherited from Exception.) |
| 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.) |