Export (0) Print
Expand All
Expand Minimize

GenericAccessRights Enumeration

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 has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

[<FlagsAttribute>]
type GenericAccessRights

Member nameDescription
AllRead, write, and execute access.
ExecuteExecute access.
NoneNo access.
ReadRead access.
WriteWrite access.

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft