Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Validates a restriction used to limit a table view.

Header file:


Implemented by:


Called by:

Service providers

ULONG FBadRestriction(
  LPSRestriction lpres


[in] An SRestriction structure defining the restriction to be validated.


The specified restriction, or one or more of its subrestrictions, is invalid.


The specified restriction and all its subrestrictions are valid.

Once a restriction is validated, it can be passed in calls to the IMAPITable::Restrict method to restrict the table to certain rows, to the IMAPITable::FindRow method to locate a table row, and to methods of the IMAPIContainer interface to perform a restriction on a container object.

© 2015 Microsoft