Export (0) Print
Expand All

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()
[C#]
public void ResetPermissions();
[C++]
public: void ResetPermissions();
[JScript]
public function ResetPermissions();

Exceptions

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

Remarks

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

Requirements

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

Show:
© 2014 Microsoft