Table of Contents

Method TryParsePresetName

Namespace
MailFathom.Common.MailboxOAuth
Assembly
MailFathom.Common.dll

TryParsePresetName(string?, out MailProviderPreset)

Parses an operator-supplied preset name, ignoring case and surrounding whitespace.

public static bool TryParsePresetName(string? presetName, out MailProviderPreset preset)

Parameters

presetName string

The configured preset name.

preset MailProviderPreset

The parsed preset when the name is supported; otherwise the unspecified default.

Returns

bool

true when the name is a supported preset; otherwise false.