API
IAuthorizationService.AuthorizeAsync
Returns the authorization result for the specified user, resource and named policy.
Formal Syntax & Structure
csharp syntaxcsharp
await auth.AuthorizeAsync(user, document, "ReadOwn")Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.await auth.AuthorizeAsync(user, document, "ReadOwn")