Class Conflict (Outlook VBA)

The class Conflict represents an Outlook item that is in conflict with another Outlook item. To use a Conflict class variable it first needs to be instantiated, for example


Dim cnf as Conflict
Set cnf = Session.CreateSharingItem.Move.Items(1).Conflicts(Index:=1)

For Each

Here is an example of processing the Conflict 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 OlObjectClass.


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

Item

Returns an Object corresponding to the specified Outlook item.

Name

Returns a String value that represents the display name for the object.


Dim strName As String
strName = Session.CreateSharingItem.Move.Items(1).Conflicts(1).Name

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:

Type

Returns an OlObjectClass constant indicating the type of item represented by the Conflict object. Here you can find possible values for OlObjectClass.


Dim oocsType As OlObjectClass
oocsType = Session.CreateSharingItem.Move.Items(1).Conflicts(1).Type