MongoDB.Driver.MongoUrlBuilder.ParseConnectionMode C# (CSharp) Метод

ParseConnectionMode() статический приватный Метод

static private ParseConnectionMode ( string name, string s ) : ConnectionMode
name string
s string
Результат ConnectionMode
        internal static ConnectionMode ParseConnectionMode(string name, string s)
        {
            try
            {
                return (ConnectionMode)Enum.Parse(typeof(ConnectionMode), s, true); // ignoreCase
            }
            catch (ArgumentException)
            {
                throw new FormatException(FormatMessage(name, s));
            }
        }