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.

Exception Condition

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
Available since 1.1
Return to top