GraphMessageSearchParameter.Arrived Method
Namespace: Rebex.Net
Assembly: Rebex.Graph.dll (version 7.0.9083)
Arrived(DateTime)
Messages that arrived on the specified date (disregarding time).
Declaration
public static GraphMessageSearchParameter Arrived(DateTime on)
Parameters
Type | Name | Description |
---|---|---|
DateTime | on | Date. Time and time zone are ignored. |
Returns
Type | Description |
---|---|
GraphMessageSearchParameter | A search parameter. |
Arrived(Nullable<DateTime>, Nullable<DateTime>)
Messages that arrived in the specified date and time interval.
Declaration
public static GraphMessageSearchParameter Arrived(DateTime? since, DateTime? before)
Parameters
Type | Name | Description |
---|---|---|
Nullable<DateTime> | since | The lower bound of the date and time interval (included in search). |
Nullable<DateTime> | before | The upper bound of the date and time interval (excluded from search). |
Returns
Type | Description |
---|---|
GraphMessageSearchParameter | A search parameter. |
Examples
Messages in the last hour:
Arrived(DateTime.Now.AddHours(-1), null)
Yesterday's messages:
Arrived(DateTime.Today.AddDays(-1), DateTime.Today)