SemaphoreAuditRule 类

定义

表示要为用户或组审核的一组访问权限。 此类不能被继承。

public ref class SemaphoreAuditRule sealed : System::Security::AccessControl::AuditRule
public sealed class SemaphoreAuditRule : System.Security.AccessControl.AuditRule
[System.Security.SecurityCritical]
public sealed class SemaphoreAuditRule : System.Security.AccessControl.AuditRule
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class SemaphoreAuditRule : System.Security.AccessControl.AuditRule
type SemaphoreAuditRule = class
    inherit AuditRule
[<System.Security.SecurityCritical>]
type SemaphoreAuditRule = class
    inherit AuditRule
[<System.Runtime.InteropServices.ComVisible(false)>]
type SemaphoreAuditRule = class
    inherit AuditRule
Public NotInheritable Class SemaphoreAuditRule
Inherits AuditRule
继承
SemaphoreAuditRule
属性

注解

SemaphoreAuditRule是.NET Framework提供的一组类之一,用于管理命名系统信号灯上的 Windows 访问控制安全性。 有关这些类及其与基础 Windows 访问控制结构的关系的概述,请参阅 SemaphoreSecurity

注意

Windows 访问控制安全性仅对命名系统信号灯有意义。 Semaphore如果 对象表示本地信号灯,则访问控制无关紧要。

若要获取当前应用于命名信号灯的审核规则列表,请使用 Semaphore.GetAccessControl 方法获取 SemaphoreSecurity 对象,然后使用其 GetAuditRules 方法来获取 对象的集合 SemaphoreAuditRule

SemaphoreAuditRule 对象不会使用基础自由访问控制列表中的访问控制条目进行一对一映射, (DACL) 。 获取信号灯的所有审核规则集时,该集包含表示所有访问控制条目所需的最小规则数。

注意

应用和删除规则时,基础访问控制条目会更改。 如果可能,将合并规则中的信息,以保持最少数量的访问控制条目。 因此,当你阅读当前规则列表时,它可能看起来与你添加的所有规则的列表不完全相同。

使用 SemaphoreAuditRule 对象指定要为用户或组审核的访问权限。 若要将规则应用于命名系统信号灯,请使用 Semaphore.GetAccessControl 方法获取 SemaphoreSecurity 对象。 SemaphoreSecurity通过使用对象的方法添加规则来修改对象,然后使用 Semaphore.SetAccessControl 方法重新附加安全对象。

重要

SemaphoreSecurity 对象所做的更改不会影响命名信号灯的访问级别,除非调用 Semaphore.SetAccessControl 方法将更改后的安全对象分配给命名信号灯。

SemaphoreAuditRule 对象是不可变的。 信号灯的安全性是使用 类的方法来添加或删除规则的 SemaphoreSecurity ;执行此操作时,会修改基础访问控制条目。

构造函数

SemaphoreAuditRule(IdentityReference, SemaphoreRights, AuditFlags)

初始化 SemaphoreAuditRule 类的新实例,指定要审核的用户或组,要审核的权限,以及是否审核成功和(或)失败。

属性

AccessMask

获取此规则的访问掩码。

(继承自 AuthorizationRule)
AuditFlags

获取此审核规则的审核标志。

(继承自 AuditRule)
IdentityReference

获取对其应用此规则的 IdentityReference

(继承自 AuthorizationRule)
InheritanceFlags

获取用于确定子对象如何继承此规则的标志的值。

(继承自 AuthorizationRule)
IsInherited

获取一个值,该值指示此规则是否为显式设置或继承自父级容器对象。

(继承自 AuthorizationRule)
PropagationFlags

获取传播标志的值,该值确定如何将此规则的继承传播到子对象。 仅当 InheritanceFlags 枚举的值不为 None 时,此属性才有意义。

(继承自 AuthorizationRule)
SemaphoreRights

获取受此审核规则影响的访问权限。

方法

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于