Upraviť

Zdieľať cez


GenericAccessRights Enum

Definition

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.

This enumeration supports a bitwise combination of its member values.

public enum class GenericAccessRights
[System.Flags]
public enum GenericAccessRights
[<System.Flags>]
type GenericAccessRights = 
Public Enum GenericAccessRights
Inheritance
GenericAccessRights
Attributes

Fields

Name Value Description
Read -2147483648

Read access.

None 0

No access.

All 268435456

Read, write, and execute access.

Execute 536870912

Execute access.

Write 1073741824

Write access.

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 Read and 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.

Applies to

See also