Table of Contents

Method TryParse

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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 string

The string representation of a server address.

address MongoServerAddress

The server address (set to null if TryParse fails).

Returns

bool

True if the string is parsed succesfully.