SystemAcl 类

定义

表示系统访问控制列表 (SACL)。Represents a System Access Control List (SACL).

public ref class SystemAcl sealed : System::Security::AccessControl::CommonAcl
public sealed class SystemAcl : System.Security.AccessControl.CommonAcl
type SystemAcl = class
    inherit CommonAcl
Public NotInheritable Class SystemAcl
Inherits CommonAcl
继承

构造函数

SystemAcl(Boolean, Boolean, Byte, Int32)

用指定的值初始化 SystemAcl 类的新实例。Initializes a new instance of the SystemAcl class with the specified values.

SystemAcl(Boolean, Boolean, Int32)

用指定的值初始化 SystemAcl 类的新实例。Initializes a new instance of the SystemAcl class with the specified values.

SystemAcl(Boolean, Boolean, RawAcl)

使用指定的 SystemAcl 对象中的指定值初始化 RawAcl 类的新实例。Initializes a new instance of the SystemAcl class with the specified values from the specified RawAcl object.

属性

BinaryLength

获取当前 CommonAcl 对象的二进制表示形式的长度(以字节为单位)。Gets the length, in bytes, of the binary representation of the current CommonAcl object. 应该在使用 GetBinaryForm(Byte[], Int32) 方法将访问控制列表封送到二进制数组中之前使用此长度。This length should be used before marshaling the access control list (ACL) into a binary array by using the GetBinaryForm(Byte[], Int32) method.

(继承自 CommonAcl)
Count

获取当前 CommonAcl 对象中访问控制项 (ACE) 的数量。Gets the number of access control entries (ACEs) in the current CommonAcl object.

(继承自 CommonAcl)
IsCanonical

获取一个布尔值,该值指定当前 CommonAcl 对象中的访问控制项 (ACE) 是否处于规范顺序。Gets a Boolean value that specifies whether the access control entries (ACEs) in the current CommonAcl object are in canonical order.

(继承自 CommonAcl)
IsContainer

设置 CommonAcl 对象是否为一个容器。Sets whether the CommonAcl object is a container.

(继承自 CommonAcl)
IsDS

设置当前 CommonAcl 对象是否为一个目录对象的访问控制列表 (ACL)。Sets whether the current CommonAcl object is a directory object access control list (ACL).

(继承自 CommonAcl)
IsSynchronized

始终将此属性设置为 falseThis property is always set to false. 实现此属性只是因为它是 ICollection 接口的实现所必需的属性。It is implemented only because it is required for the implementation of the ICollection interface.

(继承自 GenericAcl)
Item[Int32]

获取或设置指定索引处的 CommonAceGets or sets the CommonAce at the specified index.

(继承自 CommonAcl)
Revision

获取 CommonAcl 的修订级别。Gets the revision level of the CommonAcl.

(继承自 CommonAcl)
SyncRoot

此属性始终返回 nullThis property always returns null. 实现此属性只是因为它是 ICollection 接口的实现所必需的属性。It is implemented only because it is required for the implementation of the ICollection interface.

(继承自 GenericAcl)

方法

AddAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

将一个审核规则添加到当前 SystemAcl 对象。Adds an audit rule to the current SystemAcl object.

AddAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid)

将具有指定设置的审核规则添加到当前 SystemAcl 对象。Adds an audit rule with the specified settings to the current SystemAcl object. 在指定新审核规则的对象类型或继承的对象类型时,为目录对象的访问控制列表 (ACL) 使用此方法。Use this method for directory object Access Control Lists (ACLs) when specifying the object type or the inherited object type for the new audit rule.

AddAudit(SecurityIdentifier, ObjectAuditRule)

将一个审核规则添加到当前 SystemAcl 对象。Adds an audit rule to the current SystemAcl object.

CopyTo(GenericAce[], Int32)

将当前 GenericAcl 的每个 GenericAce 复制到指定数组。Copies each GenericAce of the current GenericAcl into the specified array.

(继承自 GenericAcl)
Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetBinaryForm(Byte[], Int32)

CommonAcl 对象的内容从指定的偏移量开始封送到指定的字节数组中。Marshals the contents of the CommonAcl object into the specified byte array beginning at the specified offset.

(继承自 CommonAcl)
GetEnumerator()

检索可用于在访问控制列表 (ACL) 中循环访问访问控制项 (ACE) 的对象。Retrieves an object that you can use to iterate through the access control entries (ACEs) in an access control list (ACL).

(继承自 GenericAcl)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Purge(SecurityIdentifier)

移除被此 CommonAcl 对象包含并且与指定的 SecurityIdentifier 对象关联的所有访问控制项 (ACE)。Removes all access control entries (ACEs) contained by this CommonAcl object that are associated with the specified SecurityIdentifier object.

(继承自 CommonAcl)
RemoveAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

从当前 SystemAcl 对象移除指定的审核规则。Removes the specified audit rule from the current SystemAcl object.

RemoveAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid)

从当前 SystemAcl 对象移除指定的审核规则。Removes the specified audit rule from the current SystemAcl object. 在指定对象类型或继承的对象类型时,为目录对象的访问控制列表 (ACL) 使用此方法。Use this method for directory object Access Control Lists (ACLs) when specifying the object type or the inherited object type.

RemoveAudit(SecurityIdentifier, ObjectAuditRule)

从当前 SystemAcl 对象移除指定的审核规则。Removes the specified audit rule from the current SystemAcl object.

RemoveAuditSpecific(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

从当前 DiscretionaryAcl 对象移除指定的审核规则。Removes the specified audit rule from the current DiscretionaryAcl object.

RemoveAuditSpecific(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid)

从当前 DiscretionaryAcl 对象移除指定的审核规则。Removes the specified audit rule from the current DiscretionaryAcl object. 在指定对象类型或继承的对象类型时,为目录对象的访问控制列表 (ACL) 使用此方法。Use this method for directory object Access Control Lists (ACLs) when specifying the object type or the inherited object type.

RemoveAuditSpecific(SecurityIdentifier, ObjectAuditRule)

从当前 DiscretionaryAcl 对象移除指定的审核规则。Removes the specified audit rule from the current DiscretionaryAcl object.

RemoveInheritedAces()

从此 CommonAcl 对象移除所有继承的访问控制项 (ACE)。Removes all inherited access control entries (ACEs) from this CommonAcl object.

(继承自 CommonAcl)
SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

为指定的 SecurityIdentifier 对象设置指定的审核规则。Sets the specified audit rule for the specified SecurityIdentifier object.

SetAudit(AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid)

为指定的 SecurityIdentifier 对象设置指定的审核规则。Sets the specified audit rule for the specified SecurityIdentifier object. 在指定对象类型或继承的对象类型时,为目录对象的访问控制列表 (ACL) 使用此方法。Use this method for directory object Access Control Lists (ACLs) when specifying the object type or the inherited object type.

SetAudit(SecurityIdentifier, ObjectAuditRule)

为指定的 SecurityIdentifier 对象设置指定的审核规则。Sets the specified audit rule for the specified SecurityIdentifier object.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

ICollection.CopyTo(Array, Int32)

将当前 GenericAcl 的每个 GenericAce 复制到指定数组。Copies each GenericAce of the current GenericAcl into the specified array.

(继承自 GenericAcl)
IEnumerable.GetEnumerator()

返回 AceEnumerator 类的新实例,该实例被转换为 IEnumerator 接口的实例。Returns a new instance of the AceEnumerator class cast as an instance of the IEnumerator interface.

(继承自 GenericAcl)

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于