IPrincipal Interface
Collapse the table of content
Expand the table of content

IPrincipal Interface

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Defines the basic functionality of a principal object.

Namespace:  System.Security.Principal
Assembly:  mscorlib (in mscorlib.dll)

No code example is currently available or this language may not be supported.

The IPrincipal type exposes the following members.

  NameDescription
Public propertyIdentityGets the identity of the current principal.
Top

  NameDescription
Public methodIsInRoleDetermines whether the current principal belongs to the specified role.
Top

A principal object represents the security context of the user on whose behalf the code is running, including that user's identity (IIdentity) and any roles to which they belong.

All principal objects are required to implement the IPrincipal interface.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft