GenericAccessRights Enumeration
Uses the Windows 2000/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.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
[Visual Basic] <Flags> <Serializable> Public Enum GenericAccessRights [C#] [Flags] [Serializable] public enum GenericAccessRights [C++] [Flags] [Serializable] __value public enum GenericAccessRights [JScript] public Flags Serializable enum GenericAccessRights
Remarks
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 GenericAccessRights.Read and GenericAccessRights.Write access to a message queue enables sending, peeking, and receiving messages from a queue. 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.
Members
| Member name | Description | Value |
|---|---|---|
| All | Read, write, and execute access. | 268435456 |
| Execute | Execute access. | 536870912 |
| None | No access. | 0 |
| Read | Read access. | -2147483648 |
| Write | Write access. | 1073741824 |
Requirements
Namespace: System.Messaging
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Messaging (in System.Messaging.dll)
See Also
System.Messaging Namespace | MessageQueueAccessRights | StandardAccessRights | MessageQueue.SetPermissions