MongoServerInstance Class |
Namespace: MongoDB.Driver
The MongoServerInstance type exposes the following members.
Name | Description | |
---|---|---|
Address |
Gets the address of this server instance.
| |
BuildInfo |
Gets the build info of this server instance.
| |
InstanceType |
Gets the instance type.
| |
IsArbiter |
Gets a value indicating whether this server instance is an arbiter instance.
| |
IsPassive | Obsolete.
Gets a value indicating whether this server instance is a passive instance.
| |
IsPrimary |
Gets a value indicating whether this server instance is a primary.
| |
IsSecondary |
Gets a value indicating whether this server instance is a secondary.
| |
MaxBatchCount |
Gets the maximum batch count for write operations.
| |
MaxDocumentSize |
Gets the max document size for this server instance.
| |
MaxMessageLength |
Gets the max message length for this server instance.
| |
MaxWireDocumentSize |
Gets the maximum size of a wire document. Normally slightly larger than MaxDocumentSize.
| |
SequentialId |
Gets the unique sequential Id for this server instance.
| |
Settings |
Gets the server for this server instance.
| |
State |
Gets the state of this server instance.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetIPEndPoint |
Gets the IP end point of this server instance.
| |
GetServerDescription |
Gets the server description.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Ping |
Checks whether the server is alive (throws an exception if not).
| |
Supports |
Checks whether this server instance supports a feature.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
StateChanged |
Occurs when the value of the State property changes.
|
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.) |