Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

MessageQueue.LastModifyTime Property

Gets the last time the properties of a queue were modified.

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

public DateTime LastModifyTime { get; }
/** @property */
public DateTime get_LastModifyTime ()

public function get LastModifyTime () : DateTime

Not applicable.

Property Value

A DateTime that indicates when the queue properties were last modified.

Exception typeCondition


An error occurred when accessing a Message Queuing method.

The last modification time includes when the queue was created and any MessageQueue property that modifies the Message Queuing queue, such as BasePriority. The value of the LastModifyTime property represents the system time of the local computer.

You must call Refresh before getting the LastModifyTime property; otherwise, the modification time associated with this MessageQueue might not be current.

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 LastModifyTime property.

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

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

Windows 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0