IOpcRelationshipEnumerator interface (msopc.h)

A read-only enumerator of IOpcRelationship interface pointers.

Inheritance

The IOpcRelationshipEnumerator interface inherits from the IUnknown interface. IOpcRelationshipEnumerator also has these types of members:

Methods

The IOpcRelationshipEnumerator interface has these methods.

 
IOpcRelationshipEnumerator::Clone

Creates a copy of the current enumerator and all its descendants. (IOpcRelationshipEnumerator.Clone)
IOpcRelationshipEnumerator::GetCurrent

Gets the IOpcRelationship interface pointer at the current position of the enumerator.
IOpcRelationshipEnumerator::MoveNext

Moves the current position of the enumerator to the next IOpcRelationship interface pointer.
IOpcRelationshipEnumerator::MovePrevious

Moves the current position of the enumerator to the previous IOpcRelationship interface pointer.

Remarks

To get a pointer to this interface, call either the IOpcRelationshipSet::GetEnumerator or the IOpcRelationshipSet::GetEnumeratorForType method.

When an enumerator is created, the current position precedes the first pointer. To set the current position to the first pointer of the enumerator, call the MoveNext method after creating the enumerator.

Note  Changes to the set will invalidate the enumerator, and all subsequent calls will fail.
 

Thread Safety

Packaging objects are not thread-safe.

For more information, see the Getting Started with the Packaging API.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header msopc.h

See also

Core Packaging Interfaces

Getting Started with the Packaging API

IOpcRelationshipSet

Overviews

Packaging API Reference

Packaging API Samples

Reference