Table of Contents

Method TryParse

Namespace
MailFathom.Application.EmailContent.Rendering.Document
Assembly
MailFathom.Application.dll

TryParse(string?, out MailDocumentBlockType)

Parses an identity read off the wire.

public static bool TryParse(string? identity, out MailDocumentBlockType blockType)

Parameters

identity string

The identity to parse.

blockType MailDocumentBlockType

The catalogued type when the identity names one; otherwise the unspecified default.

Returns

bool

true when the identity names a catalogued block; otherwise false.

Remarks

An identity nothing declares is unknown rather than new, so nothing is reconstructed from it: a client meeting one is meeting a service ahead of it, which is what the block's version and the document's schema version are for.