This documentation is archived and is not being maintained.

MessageQueue.ResetPermissions Method

Resets the permission list to the operating system's default values. Removes any queue permissions you have appended to the default list.

[Visual Basic]
Public Sub ResetPermissions()
public void ResetPermissions();
public: void ResetPermissions();
public function ResetPermissions();


Exception Type Condition
MessageQueueException An error occurred when accessing a Message Queuing API.


When you call ResetPermissions, you return the permission list to its default values. Generally, this grants the queue creator all permissions, and gives the group Everyone the following rights:

  • Get the properties of the queue.
  • Get queue permissions.
  • Write to the queue.

The following table shows whether this method is available in various Workgroup modes.

Workgroup Mode Available
Local computer Yes
Local computer + direct format name Yes
Remote computer No
Remote computer + direct format name No


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

MessageQueue Class | MessageQueue Members | System.Messaging Namespace | SetPermissions