The information in this article applies to:
SYMPTOMSIn the Microsoft Outlook 98 object model, you use the Restrict method to retrieve a subset of items from a delegated folder, but all of the items in the folder are returned. CAUSE
In order for the Restrict method to work with a delegated folder, you
must be retrieving appointments from a shared calendar and you must use
the IncludeRecurrences and Sort methods to make sure that all of the
appointments are retrieved.
WORKAROUNDIf the Restrict method is not functioning based on your solution's need, you can use the Find and FindNext methods to retrieve items one at a time. STATUSMicrosoft has confirmed this to be a problem in Microsoft Outlook 98. MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft Support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspThe Restrict method is used to return a subset of a collection of items based on certain criteria. The GetSharedDefaultFolder method is used to gain access to someone else's folder after they have given you delegate access to their folder. The Restrict method does function correctly when used on your own folder or a Microsoft Exchange public folder. The following Microsoft Visual Basic or Visual Basic for Applications automation code illustrates how the Restrict method can work with a delegated Calendar folder.
REFERENCESFor more information about creating solutions with Microsoft Outlook 98, please see the following articles in the Microsoft Knowledge Base: Q180826 OL98: Resources for Custom Forms and Programming Additional query words: OutSol OutSol98
Keywords : kbprg kbdta |
Last Reviewed: November 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |