OL2000: Restrict May Not Work with Uncached Properties (208301)
The information in this article applies to:
This article was previously published under Q208301 SYMPTOMS
You use the Restrict and IncludeRecurrences methods in the Outlook object model and Outlook appears to stop responding (hang), or the collection of items does not appear to be functioning correctly.
CAUSE
This may happen if all of the following are true:
- You have items that recur and do not have an end date.
- In the filter of the Restrict method, you did not specify an end date, so the number of items in the collection is infinite.
- In the filter of the Restrict method, you used a property that Outlook does not cache by default.
RESOLUTION
Use one of the following workarounds: - Use the SetColumns method to cache the property you wish to use Restrict on. As an example, uncomment the SetColumns line in the "Steps to Reproduce the Problem" section below.
- Alter the filter of the Restrict method so that the method will not return an infinite collection.
REFERENCES
For additional information about available resources and answers
to commonly asked questions about Microsoft Outlook 2000 solutions,
please see the following article in the Microsoft Knowledge Base: 146636 OL2000: Questions About Custom Forms and Outlook Solutions
Modification Type: | Major | Last Reviewed: | 9/29/2003 |
---|
Keywords: | kbnofix kbprb kbProgramming KB208301 |
---|
|