UCC_CONTAINER_MEMBER_COMPARE_RESULT Enumeration
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Enumerates possible results from comparing one IUccContainerMember to another.
Namespace: Microsoft.Office.Interop.UccApi
Assembly: Microsoft.Office.Interop.UccApi (in microsoft.office.interop.uccapi.dll)
Syntax
'Declaration
Public Enumeration UCC_CONTAINER_MEMBER_COMPARE_RESULT
public enum UCC_CONTAINER_MEMBER_COMPARE_RESULT
public enum class UCC_CONTAINER_MEMBER_COMPARE_RESULT
public enum UCC_CONTAINER_MEMBER_COMPARE_RESULT
public enum UCC_CONTAINER_MEMBER_COMPARE_RESULT
Members
Member name | Description |
---|---|
UCCCMCR_DIFFERENT | A flag indicating that the two container members are different. |
UCCCMCR_SAME | A flag indicating that the two container members are identical. |
UCCCMCR_SUBSET | A flag indicating that the comparing instance is a subset of the compared instance. |
UCCCMCR_SUPERSET | A flag indicating that the comparing instance is a superset of the compared instance. |
Remarks
An application calls the CompareTo method on an IUccContainerMember instance (the comparing instance) to examine the similarity relationship between the comparing instance and another container member (the compared instance). The result is returned as a member of this enumeration type.
Win32 COM/C++ Syntax
typedef enum UCC_CONTAINER_MEMBER_COMPARE_RESULT
{
UCCCMCR_SAME,
UCCCMCR_SUPERSET,
UCCCMCR_SUBSET,
UCCCMCR_DIFFERENT
};
Example
The following example handles the OnMemberAdded event and compares the newly added container member to an existing container member. If the members are not the same, the local user is advised.
void _IUccContainerEvents.OnMemberAdded(
IUccContainer pContainer,
UccContainerMemberCollectionEvent pEventData)
{
IUccContainerMember cm = pEventData.ContainerMember;
IUccContainerMember m = this.ContainerMember;
UCC_CONTAINER_MEMBER_COMPARE_RESULT r = cm.CompareTo(m.Member);
if (r != UCC_CONTAINER_MEMBER_COMPARE_RESULT.UCCCMCR_SAME)
{
Console.WriteLine("New Member has not been previously added");
}
}
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2000 with Service Pack 4, Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition