Class Exceptions (Outlook VBA)

Contains a group of Exception objects. To use a Exceptions class variable it first needs to be instantiated, for example


Dim excs as Exceptions
Set excs = Session.CreateSharingItem.Move.Items(1).GetRecurrencePattern.Exceptions

For Each

Here is an example of processing the Exceptions items in a collection.


Dim exc As Exception
For Each exc In Session.CreateSharingItem.Move.Items(1).GetRecurrencePattern.Exceptions
	
Next exc

Class

Returns an OlObjectClass constant indicating the object's class. Here you can find possible values for OlObjectClass.


Dim oocsClass As OlObjectClass
oocsClass = Session.CreateSharingItem.Move.Items(1).GetRecurrencePattern.Exceptions.Class

Count

Returns a Long indicating the count of objects in the specified collection.


Dim lngCount As Long
lngCount = Session.CreateSharingItem.Move.Items(1).GetRecurrencePattern.Exceptions.Count

Item

Returns an Exception object from the collection.

Item (Index)

Index: Either the index number of the object, or a value used to match the default property of an object in the collection.


Dim exc As Exception
Set exc = Session.CreateSharingItem.Move.Items(1).GetRecurrencePattern.Exceptions(Index:=1)

Session

Returns the NameSpace object for the current session.

The Session property and the GetNamespace method can be used interchangeably to obtain the NameSpace object for the current session. Both members serve the same purpose. For example, the following statements do the same function: