Поделиться через


FindItemType.Restriction Property

The Restriction property gets or sets the search parameters that define an item query. This property is optional. This is a read/write property.

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

Syntax

'Declaration
Public Property Restriction As RestrictionType
    Get
    Set
'Usage
Dim instance As FindItemType
Dim value As RestrictionType

value = instance.Restriction

instance.Restriction = value
public RestrictionType Restriction { get; set; }

Property Value

Type: ExchangeWebServices.RestrictionType
The Restriction property returns a RestrictionType object that contains the search parameters that define the query.

Remarks

The Restriction property contains all the comparison arguments that the query filter includes. It can contain the following search expressions:

  • And

  • Contains

  • Excludes

  • Exists

  • IsEqualTo

  • IsGreaterThan

  • IsGreaterThanOrEqualTo

  • IsLessThan

  • IsLessThanOrEqualTo

  • IsNotEqualTo

  • Not

  • Or

This property is optional.

Note

You cannot specify restrictions when doing CalendarView paging. Additionally, some properties cannot be used to form the restriction definitions.