This documentation is archived and is not being maintained.

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 DateTime CreateTime { get; }
/** @property */
public DateTime get_CreateTime ()

public function get CreateTime () : DateTime

Property Value

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

Exception typeCondition


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


Local computer


Local computer and direct format name


Remote computer


Remote computer and direct format name


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

// Display the value of the queue's CreateTime property.
Console.WriteLine("MessageQueue.CreateTime: {0}", 

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0