Table of Contents

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

written string

The written value.

subtree PermissionSubtree

The parsed subtree when the value is written as one; otherwise the unspecified default.

Returns

bool

true when the value is written as a subtree; otherwise false.

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".