MessageQueue::CreateTime Property

 

Gets the time and date that the queue was created in Message Queuing.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public:
[MessagingDescriptionAttribute("MQ_CreateTime")]
property DateTime CreateTime {
	DateTime get();
}

Property Value

Type: System::DateTime

A DateTime that represents the date and time at which the queue was created.

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
Return to top
Show: