Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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] 
public enum GenericAccessRights
/** @attribute FlagsAttribute() */ 
public enum GenericAccessRights
FlagsAttribute 
public enum 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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.