(2nd attempt) How to get permissions of existing queue?

K

Karun Karunakaran

Hi,

How do I get the permissions of an existing queue? The
System.Messaging.MessageQueue class has the function
SetPermissions, but I am not able to find one that gets
existing permissions.

(The answer to my original post directed me to
AccessControlEntry class, but that can just be used to
*set* permissions for a queue, not *get* the existing
permissions.)

Thanks,
Karun.
 
K

Kevin McNeish [C# MVP]

Karun,
How do I get the permissions of an existing queue? The
System.Messaging.MessageQueue class has the function
SetPermissions, but I am not able to find one that gets
existing permissions.

Have you checked out the MessageQueueInstaller class? According to .NET Help
you can pass an existing queue in the MessageQueueInstaller constructor. Its
Permissions property allows you to examine the permissions associated with a
queue.

Regards,

Kevin McNeish
C# MVP
Chief Software Architect, Mere Mortals .NET Framework
www.oakleafsd.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top