MessageQueue::CreateTime Property
.NET Framework (current version)
Gets the time and date that the queue was created in Message Queuing.
Assembly: System.Messaging (in System.Messaging.dll)
| Exception | Condition |
|---|---|
| MessageQueueException | An error occurred when accessing a Message Queuing method. |
CreateTime refers to the queue on the Message Queuing server, not the MessageQueue instance.
If the queue exists, this property represents the time the queue was created, adjusted to the local time of the server on which the queue exists.
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 |
The following code example displays the value of a message queue's CreateTime property.
// Display the value of the queue's CreateTime property. Console.WriteLine("MessageQueue.CreateTime: {0}", queue.CreateTime);
.NET Framework
Available since 1.1
Available since 1.1
Show: