IsSameAs Method (Message Object)

IsSameAs Method (Message Object)

Exchange Server 2003

Topic Last Modified: 2004-06-09

The IsSameAs method returns True if the Message object is the same as the Message object being compared against.

boolSame = objMessage.IsSameAs(objMessage2)

boolSame

On successful return, contains True if the two objects are the same.

objMessage

Required. This Message object.

objMessage2

Required. The Message object being compared against.

Two Message objects are considered to be the same if and only if they are instantiations of the same physical (persistent) object in the underlying messaging system. Two objects with the same value are still considered different if they do not instantiate the same physical object, for example if one is a copy of the other. In such a case IsSameAs returns False.

The IsSameAs method ultimately calls one of the MAPI CompareEntryIDs methods to determine if two objects are the same. This is necessary because, although MAPI requires all entry identifiers to be unique, it does not require two of them identifying the same object to be identical. A generic comparison of any two objects' unique identifiers is also available with the Session objects CompareIDs method.

Show:
© 2016 Microsoft