Uređivanje

Dijeli putem


MessageQueue.CreateTime Property

Definition

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

public:
 property DateTime CreateTime { DateTime get(); };
[System.Messaging.MessagingDescription("MQ_CreateTime")]
public DateTime CreateTime { get; }
[<System.Messaging.MessagingDescription("MQ_CreateTime")>]
member this.CreateTime : DateTime
Public ReadOnly Property CreateTime As DateTime

Property Value

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

Attributes

Exceptions

An error occurred when accessing a Message Queuing method.

Examples

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

Remarks

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

Applies to

See also