MessageQueue.Id Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A Id that represents the message identifier generated by the Message Queuing application.
- Attributes
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 |
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: