StandardAccessRights StandardAccessRights StandardAccessRights StandardAccessRights Enum

定义

指定一组标准访问权限,这些权限与大多数安全对象类型所共有的操作相对应。Specifies a set of standard access rights that correspond to operations common to most types of securable objects.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class StandardAccessRights
[System.Flags]
[System.Serializable]
public enum StandardAccessRights
type StandardAccessRights = 
Public Enum StandardAccessRights
继承
StandardAccessRightsStandardAccessRightsStandardAccessRightsStandardAccessRights
属性

字段

All All All All 2031616

组合 DeleteReadSecurityWriteSecurityModifyOwnerSynchronize 访问。Combines Delete, ReadSecurity, WriteSecurity, ModifyOwner, and Synchronize access.

Delete Delete Delete Delete 65536

删除对象的权限。The right to delete the object.

Execute Execute Execute Execute 131072

读取对象安全说明符中的信息的权限。The right to read the information in the object's security descriptor. 在 Windows 2000 和 Windows NT 上,安全说明符包含有关可保护对象的安全信息。On Windows 2000 and Windows NT, the security descriptor contains the security information for a securable object. 它标识该对象的所有者和主要组。It identifies the object's owner and primary group. Execute 当前被定义为等于 ReadSecurityExecute is currently defined to equal ReadSecurity.

ModifyOwner ModifyOwner ModifyOwner ModifyOwner 524288

更改对象安全说明符中的所有者的权限。The right to change the owner in the object's security descriptor.

None None None None 0

无访问权限。No access.

Read Read Read Read 131072

读取对象安全说明符中的信息的权限。The right to read the information in the object's security descriptor. Read 当前被定义为等于 ReadSecurityRead is currently defined to equal ReadSecurity.

ReadSecurity ReadSecurity ReadSecurity ReadSecurity 131072

读取对象安全说明符中的信息的权限。The right to read the information in the object's security descriptor.

Required Required Required Required 851968

组合 DeleteReadSecurityWriteSecurityModifyOwner 访问。Combines Delete, ReadSecurity, WriteSecurity, and ModifyOwner access.

Synchronize Synchronize Synchronize Synchronize 1048576

将对象用于同步的权限。The right to use the object for synchronization. 这使线程可以在对象处于特定状态前一直处于等待状态。This enables a thread to wait until the object is in a specific state.

Write Write Write Write 131072

读取对象安全说明符中的信息的权限。The right to read the information in the object's security descriptor. Write 当前被定义为等于 ReadSecurityWrite is currently defined to equal ReadSecurity.

WriteSecurity WriteSecurity WriteSecurity WriteSecurity 262144

在安全说明符中修改自由访问控制列表 (DACL) 的权限。The right to modify the discretionary access control list (DACL) in the security descriptor. 针对对象的 DACL 控制访问。The DACL controls access to the object. 可写入到 DACL 时,用户就能设置对象的安全性。Being able to write to the DACL gives the user the ability to set security for the object.

注解

StandardAccessRights枚举定义常见操作 (如删除、读取和写入) 的权限。The StandardAccessRights enumeration defines rights for common operations, such as deleting, reading, and writing. 每个成员的精确含义特定于它所应用到的对象类型。The precise meaning of each member is specific to the object type to which it is applied.

StandardAccessRights是两个枚举中的一个, GenericAccessRights枚举将大量的读取、写入或执行功能映射到该枚举。StandardAccessRights is one of two enumerations to which the GenericAccessRights enumeration maps extensive read, write, or execute abilities. StandardAccessRights使您能够指定对大多数对象通用的权限, 例如, 删除对象或读取安全描述符。StandardAccessRights enables you to specify rights common to most objects, for example, deleting the object or reading a security descriptor.

StandardAccessRightsMessageQueueAccessRights均提供了一个用于删除队列的成员。Both StandardAccessRights and MessageQueueAccessRights provide a member for deleting a queue. 应用程序的需求定义你使用哪组标志。The needs of the application define which set of flags you use.

适用于

另请参阅