Table of Contents

Method TryParse

Namespace
MailFathom.Application.Discovery.Planning
Assembly
MailFathom.Application.dll

TryParse(string?, out DiscoveryIntent)

Reads an intent from the name it is written under.

public static bool TryParse(string? identity, out DiscoveryIntent intent)

Parameters

identity string

The name to read, which may be surrounded by whitespace.

intent DiscoveryIntent

The intent the name means, or the default of the struct when it means none.

Returns

bool

true when the name is one this catalogue holds.

Remarks

A name this catalogue does not hold is not an error here. It is what a model answering with something else produces, and the planner reads that as Unclassified rather than as a failed run.