Method TryParse
TryParse(string, out MongoServerAddress)
Tries to parse a string representation of a server address.
public static bool TryParse(string value, out MongoServerAddress address)
Parameters
value
stringThe string representation of a server address.
address
MongoServerAddressThe server address (set to null if TryParse fails).
Returns
- bool
True if the string is parsed succesfully.