Class MongoServerAddress
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
The address of a MongoDB server.
public class MongoServerAddress : IEquatable<MongoServerAddress>
Inheritance
MongoServerAddress
Implements
Inherited Members
Constructors
Initializes a new instance of MongoServerAddress.
MongoServerAddress(string, int)
Initializes a new instance of MongoServerAddress.
Properties
Gets the server's host name.
Gets the server's port number.
Methods
Compares two server addresses.
Compares two server addresses.
Gets the hash code for this object.
Parses a string representation of a server address.
Returns a string representation of the server address.
TryParse(string, out MongoServerAddress)
Tries to parse a string representation of a server address.
Operators
operator ==(MongoServerAddress, MongoServerAddress)
Compares two server addresses.
operator !=(MongoServerAddress, MongoServerAddress)
Compares two server addresses.