Method TryParse
- Namespace
- MailFathom.Domain.Access
- Assembly
- MailFathom.Domain.dll
TryParse(string?, out PermissionSubtree)
Parses a written value that asks for a subtree rather than for one permission.
public static bool TryParse(string? written, out PermissionSubtree subtree)
Parameters
writtenstringThe written value.
subtreePermissionSubtreeThe parsed subtree when the value is written as one; otherwise the unspecified default.
Returns
Remarks
Answering true says the operator asked for a subtree and never that the subtree is one this build can grant. A pattern nothing is published beneath parses here and is refused where a role is written, because it needs a different thing said about it than "that is not a permission".