Vanara/Security/AccessControl/PrivilegeAndAttributes.cs

24 lines
822 B
C#
Raw Normal View History

2018-04-05 16:17:33 -04:00
using static Vanara.PInvoke.AdvApi32;
namespace Vanara.Security.AccessControl
{
2018-04-05 16:17:33 -04:00
/// <summary>Class to hold associated <see cref="SystemPrivilege"/> and <see cref="PrivilegeAttributes"/> pairs.</summary>
public class PrivilegeAndAttributes
{
2018-04-05 16:17:33 -04:00
/// <summary>Initializes a new instance of the <see cref="PrivilegeAndAttributes"/> class.</summary>
/// <param name="p">The privilege.</param>
/// <param name="a">The attribute.</param>
public PrivilegeAndAttributes(SystemPrivilege p, PrivilegeAttributes a)
{
Privilege = p;
Attributes = a;
}
2018-04-05 16:17:33 -04:00
/// <summary>Gets the privilege.</summary>
/// <value>The privilege.</value>
public SystemPrivilege Privilege { get; }
2018-04-05 16:17:33 -04:00
/// <summary>Gets the attributes.</summary>
/// <value>The attributes.</value>
public PrivilegeAttributes Attributes { get; }
}
}