Export (0) Print
Expand All

MessageQueueCriteria.ModifiedBefore Property

Gets or sets the upper boundary of the queue modification date and time by which to filter queues on the network.

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

public DateTime ModifiedBefore { get; set; }

Property Value

Type: System.DateTime
A DateTime that specifies the upper boundary for a queue's last modification date and time.

ExceptionCondition
InvalidOperationException

The application did not set the ModifiedBefore property before reading it.

A queue's modification flag is set when you change the properties of a queue, but not when a message is read or written to the queue.

The MessageQueueCriteria properties are combined using a logical AND, so setting both ModifiedBefore and ModifiedAfter bounds a time interval for the queues' last modification. If you set only ModifiedBefore, there is no lower boundary on the date.

If you try to set ModifiedBefore to an earlier DateTime value than ModifiedAfter, ModifiedAfter is reset to the same (new) value as ModifiedBefore.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft