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
idPresentationCitationIdThe name blocks refer to this citation by.
targetPresentationCitationTargetWhat the citation resolves to.
labelPresentationTextWhat a client prints where the source is named.
mediumPresentationSourceMediumWhether somebody wrote the source or it is a description of a picture.
unreadableUnreadableSourceReason?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
targetis null.- ArgumentException
Thrown when
labelis the unspecified default.