MessageQueue.Id MessageQueue.Id MessageQueue.Id MessageQueue.Id Property


Gets the unique Message Queuing identifier of the queue.

 property Guid Id { Guid get(); };
public Guid Id { get; }
member this.Id : Guid
Public ReadOnly Property Id As Guid

Property Value

A Id that represents the message identifier generated by the Message Queuing application.


An error occurred when accessing a Message Queuing method.


The following code example displays the value of a message queue's Id property.

// Display the value of the queue's Id property.
Console.WriteLine("MessageQueue.Id: {0}", queue.Id);


Message Queuing sets the Id property when it creates the queue. This property is only available for public queues.

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

Workgroup mode Available
Local computer Yes
Local computer and direct format name Yes
Remote computer No
Remote computer and direct format name No

Applies to

See also