SqlTrackingQueryOptions.StatusMaxDateTime Property
Definition
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 or sets a DateTime that specifies the upper limit of the time period that, together with WorkflowStatus, is used to constrain the set of SqlTrackingWorkflowInstance objects returned by a call to GetWorkflows(SqlTrackingQueryOptions).
public:
property DateTime StatusMaxDateTime { DateTime get(); void set(DateTime value); };
public DateTime StatusMaxDateTime { get; set; }
member this.StatusMaxDateTime : DateTime with get, set
Public Property StatusMaxDateTime As DateTime
Property Value
A DateTime that specifies the upper limit of the time period used for matching workflow instances with a status specified by WorkflowStatus. The default is DateTime.MinValue.
Remarks
SqlTrackingQueryOptions constrains the set of SqlTrackingWorkflowInstance objects returned by a call to SqlTrackingQuery.GetWorkflows to those workflow instances that have the Type specified by WorkflowType, that have the status specified by WorkflowStatus during the period specified by StatusMinDateTime and StatusMaxDateTime, and that have extracted data that matches at least one of the TrackingDataItemValue objects specified by TrackingDataItems.
The DateTime value specified by StatusMaxDateTime is inclusive. For more information about how the status of a workflow instance is matched, see the WorkflowStatus property.
Note
If WorkflowStatus
is set to null, then StatusMaxDateTime
and StatusMinDateTime
are ignored. All workflow instances will be returned when GetWorkflows
is called.