MessageQueueCriteria.CreatedAfter Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public DateTime CreatedAfter { get; set; }

Property Value

Type: System.DateTime

A DateTime that specifies the lower boundary for a queue's creation date and time.

Exception Condition
InvalidOperationException

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

The MessageQueueCriteria properties are combined using a logical AND, so setting both CreatedAfter and CreatedBefore bounds a time interval for the queues' creation. If you set only CreatedAfter, there is no upper boundary on the date.

If you try to set CreatedAfter to a later DateTime value than CreatedBefore, CreatedBefore is reset to the same (new) value as CreatedAfter.

.NET Framework
Available since 1.1
Return to top
Show: