Table of Contents

Constructor PresentationCitation

Namespace
MailFathom.Application.Discovery.Presentation.Citations
Assembly
MailFathom.Application.dll

PresentationCitation(PresentationCitationId, PresentationCitationTarget, PresentationText, PresentationSourceMedium, UnreadableSourceReason?)

Initializes one source a plan declares.

public PresentationCitation(PresentationCitationId id, PresentationCitationTarget target, PresentationText label, PresentationSourceMedium medium, UnreadableSourceReason? unreadable = null)

Parameters

id PresentationCitationId

The name blocks refer to this citation by.

target PresentationCitationTarget

What the citation resolves to.

label PresentationText

What a client prints where the source is named.

medium PresentationSourceMedium

Whether somebody wrote the source or it is a description of a picture.

unreadable UnreadableSourceReason?

Why the source could not be read, or null where it was read.

Remarks

The identifier is checked by PresentationPlan rather than here, because what makes a name usable is that the plan declares it once and no block names anything else — a claim about the set rather than about one citation, and one this constructor could not make. The same holds for what an unreadable source may back: a block resting on one would be a fact drawn from something nobody read, and refusing that is a claim about the plan.

Exceptions

ArgumentNullException

Thrown when target is null.

ArgumentException

Thrown when label is the unspecified default.