MessageQueue.Id Property

Definition

Gets the unique Message Queuing identifier of the queue.

public:
 property Guid Id { Guid get(); };
[System.Messaging.MessagingDescription("MQ_GuidId")]
public Guid Id { get; }
[<System.Messaging.MessagingDescription("MQ_GuidId")>]
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.

Attributes

Exceptions

An error occurred when accessing a Message Queuing method.

Examples

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);

Remarks

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