Method Restore
- Namespace
- MailFathom.Application.Rules
- Assembly
- MailFathom.Application.dll
Restore(string)
Reads back an identity this system derived earlier and recorded.
public static MailRuleSetRevision Restore(string value)
Parameters
valuestringThe recorded identity.
Returns
- MailRuleSetRevision
The revision, which compares equal to a freshly derived one of the same rule set.
Remarks
A durable record of a run has to say which rule set the run was bound to, and it survives the process that derived it — so the identity has to come back from storage rather than only out of Create(IReadOnlyList<MailRuleDeclaration>). The shape is checked rather than trusted, because a value that is not one this type produces would compare unequal to every rule set and silently make every run look superseded.
Exceptions
- ArgumentException
Thrown when the value is not an identity this type could have produced.