Export (0) Print
Expand All

MessageQueueCriteria.CreatedBefore Property

Gets or sets the upper 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 CreatedBefore { get; set; }

Property Value

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


The application did not set the CreatedBefore 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 CreatedBefore, there is no lower boundary on the date.

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

.NET Framework

Supported in: 4.5.3, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft