GenericAccessRights 枚举

定义

使用 Windows 2000 和 Windows NT 访问格式指定一组公共访问权限,消息队列将这些权限映射为标准的和对象特定的读取、写入和执行访问权限。Uses the Windows 2000 and Windows NT access format to specify a set of common access rights that Message Queuing maps to both standard and object-specific access rights for reading, writing, and executing.

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

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

字段

All 268435456

读取、写入和执行访问。Read, write, and execute access.

Execute 536870912

执行访问。Execute access.

None 0

无访问权限。No access.

Read -2147483648

读取访问权限。Read access.

Write 1073741824

写入访问权限。Write access.

注解

GenericAccessRights枚举在你可以指定的内容中提供的详细信息更少, 但通常比指定所有对应的标准和特定权限更简单。The GenericAccessRights enumeration provides less detail in what you can specify, but is typically simpler than specifying all the corresponding standard and specific rights. 每个对象类型都可以将一般访问权限映射到一组标准 (大多数类型的安全对象共有) 和特定于对象的权限。Each object type can map generic access rights to a set of standard (common to most types of securable objects) and object-specific rights.

例如, 授予用户对消息队列的 "读取" 和 "写入" 访问权限, 可以从队列发送、查看和接收消息。For example, giving a user Read and Write access to a message queue enables sending, peeking, and receiving messages from a queue. 但是, 若要获得更精细的访问权限控制, StandardAccessRights可以使用MessageQueueAccessRights和枚举来指定, 例如, 用户可以查看但不能接收消息, 可以删除队列或消息, 也可以设置队列属性。However, for finer access rights control, you can use the StandardAccessRights and the MessageQueueAccessRights enumeration to specify, for example, that a user can peek but not receive messages, can delete queues or messages, or can set queue properties.

适用于

另请参阅