Table of Contents

Method TryParse

Namespace
MailFathom.Domain.Access
Assembly
MailFathom.Domain.dll

TryParse(string?, out UserCredentialMethod)

Parses a name written outside this process.

public static bool TryParse(string? name, out UserCredentialMethod method)

Parameters

name string

The written name, in the published lower-case hyphenated form.

method UserCredentialMethod

The method the name declares, or the unspecified default when it declares none.

Returns

bool

true when the name is one this repository publishes; otherwise false.

Remarks

The comparison is ordinal and case-insensitive, because the name is written by hand in a configuration file and on a command line, and no two published names differ by case alone.