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
public RestrictionType Restriction { get; set; }
public:
property RestrictionType^ Restriction {
    RestrictionType^ get ();
    void set (RestrictionType^ value);
}
/** @property */
public RestrictionType get_Restriction ()

/** @property */
public void set_Restriction (RestrictionType value)
public function get Restriction () : RestrictionType

public function set Restriction (value : RestrictionType)

Property Value

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)