Class MongoServerAddress
The address of a MongoDB server.
[Serializable]
public class MongoServerAddress : IEquatable<MongoServerAddress>
- Inheritance
-
MongoServerAddress
- Implements
- Inherited Members
Constructors
- MongoServerAddress(string)
Initializes a new instance of MongoServerAddress.
- MongoServerAddress(string, int)
Initializes a new instance of MongoServerAddress.
Properties
- Host
Gets the server's host name.
- Port
Gets the server's port number.
Methods
- Equals(MongoServerAddress)
Compares two server addresses.
- Equals(object)
Compares two server addresses.
- GetHashCode()
Gets the hash code for this object.
- Parse(string)
Parses a string representation of a server address.
- ToString()
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.