Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Security.​Principal.​IPrincipal

Assembly: System.Runtime

Defines the basic functionality of a principal object.

Properties

public IIdentity
Identity
Gets the identity of the current principal.

Methods

public bool
IsInRole​(string role)
role The name of the role for which to check membership.
Returns <see langword="true" /> if the current principal is a member of the specified role; otherwise, <see langword="false" /> .
Determines whether the current principal belongs to the specified role.