WindowsPrincipal
Enables code to check the Windows group membership of a Windows user.
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Security.Claims;
namespace System.Security.Principal
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class WindowsPrincipal : ClaimsPrincipal
{
public virtual IEnumerable<Claim> DeviceClaims {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal);
}
}
public override IIdentity Identity {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal);
}
}
public virtual IEnumerable<Claim> UserClaims {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal);
}
}
public WindowsPrincipal(WindowsIdentity ntIdentity)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal);
}
public virtual bool IsInRole(int rid)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal);
}
public virtual bool IsInRole(SecurityIdentifier sid)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal);
}
public virtual bool IsInRole(WindowsBuiltInRole role)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal);
}
public override bool IsInRole(string role)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal);
}
}
}