MessageQueue.LastModifyTime Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the last time the properties of a queue were modified.
public:
property DateTime LastModifyTime { DateTime get(); };
[System.Messaging.MessagingDescription("MQ_LastModifyTime")]
public DateTime LastModifyTime { get; }
[<System.Messaging.MessagingDescription("MQ_LastModifyTime")>]
member this.LastModifyTime : DateTime
Public ReadOnly Property LastModifyTime As DateTime
A DateTime that indicates when the queue properties were last modified.
- Attributes
An error occurred when accessing a Message Queuing method.
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);
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 | Available |
---|---|
Local computer | Yes |
Local computer and direct format name | Yes |
Remote computer | No |
Remote computer and direct format name | No |
Продукт | Версии |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: