Before FolderSwitch

The BeforeFolderSwitch event occurs when the Explorer navigates to a new folder, either as a result of user action or through program code. This event is cancelable, so you can prevent users from navigating to prohibited folders. Of course, you can prevent users from opening prohibited folders through Exchange folder permissions, but with this event, you can also customize the Warning dialog box. The following code tests whether the current user is a member of a distribution list. If not, the user is prevented from switching to a public folder named Salary Guidelines.

Was this article helpful?

0 0

Post a comment