24 lines
918 B
C#
24 lines
918 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Security.Principal
|
|
{
|
|
/// <summary>Defines the basic functionality of a principal object.</summary>
|
|
// Token: 0x020005AC RID: 1452
|
|
[ComVisible(true)]
|
|
public interface IPrincipal
|
|
{
|
|
/// <summary>Gets the identity of the current principal.</summary>
|
|
/// <returns>The <see cref="T:System.Security.Principal.IIdentity" /> object associated with the current principal.</returns>
|
|
// Token: 0x17000A6D RID: 2669
|
|
// (get) Token: 0x06003520 RID: 13600
|
|
IIdentity Identity { get; }
|
|
|
|
/// <summary>Determines whether the current principal belongs to the specified role.</summary>
|
|
/// <returns>true if the current principal is a member of the specified role; otherwise, false.</returns>
|
|
/// <param name="role">The name of the role for which to check membership. </param>
|
|
// Token: 0x06003521 RID: 13601
|
|
bool IsInRole(string role);
|
|
}
|
|
}
|