Class Conflicts (Outlook VBA)
Contains a collection of Conflict objects that represent all Microsoft Outlook items that are in conflict with a particular Outlook item. To use a Conflicts class variable it first needs to be instantiated, for example
Dim cnfs as Conflicts
Set cnfs = Session.CreateSharingItem.Move.Items(1).Conflicts
For Each
Here is an example of processing the Conflicts items in a collection.
Dim cnf As Conflict
For Each cnf In Session.CreateSharingItem.Move.Items(1).Conflicts
Next cnf
Class
Returns an OlObjectClass constant indicating the object's class. Here you can find possible values for
Dim oocsClass As OlObjectClass
oocsClass = Session.CreateSharingItem.Move.Items(1).Conflicts.Class
Count
Returns a Long indicating the count of objects in the specified collection.
Dim lngCount As Long
lngCount = Session.CreateSharingItem.Move.Items(1).Conflicts.Count
GetFirst
Returns the first object in the Conflicts collection.
Returns Nothing if no first object exists, for example, if there are no objects in the collection. To ensure correct operation of the GetFirst, GetLast, GetNext, and GetPrevious methods in a large collection, call GetFirst before calling GetNext on that collection and call GetLast before calling GetPrevious. To ensure that you are always making the calls on the same collection, create an explicit variable that refers to that collection before entering the loop.
Dim cnfGetFirst As Conflict
Set cnfGetFirst = Session.CreateSharingItem.Move.Items(1).Conflicts.GetFirst()
GetLast
Returns the last object in the Conflicts collection.
It returns Nothing if no last object exists, for example, if the collection is empty. To ensure correct operation of the GetFirst, GetLast, GetNext, and GetPrevious methods in a large collection, call GetFirst before calling GetNext on that collection, and call GetLast before calling GetPrevious. To ensure that you are always making the calls on the same collection, create an explicit variable that refers to that collection before entering the loop.
Dim cnfGetLast As Conflict
Set cnfGetLast = Session.CreateSharingItem.Move.Items(1).Conflicts.GetLast()
GetNext
Returns the next object in the Conflicts collection.
It returns Nothing if no next object exists, for example, if already positioned at the end of the collection. To ensure correct operation of the GetFirst, GetLast, GetNext, and GetPrevious methods in a large collection, call GetFirst before calling GetNext on that collection, and call GetLast before calling GetPrevious. To ensure that you are always making the calls on the same collection, create an explicit variable that refers to that collection before entering the loop.
Dim cnfGetNext As Conflict
Set cnfGetNext = Session.CreateSharingItem.Move.Items(1).Conflicts.GetNext()
GetPrevious
Returns the previous object in the Conflicts collection.
It returns Nothing if no previous object exists, for example, if already positioned at the beginning of the collection. To ensure correct operation of the GetFirst, GetLast, GetNext, and GetPrevious methods in a large collection, call GetFirst before calling GetNext on that collection, and call GetLast before calling GetPrevious. To ensure that you are always making the calls on the same collection, create an explicit variable that refers to that collection before entering the loop.
Dim cnfGetPrevious As Conflict
Set cnfGetPrevious = Session.CreateSharingItem.Move.Items(1).Conflicts.GetPrevious()
Item
Returns an Conflict 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 cnf As Conflict
Set cnf = Session.CreateSharingItem.Move.Items(1).Conflicts(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: