Export (0) Print
Expand All

IOpcRelationshipEnumerator interface

A read-only enumerator of IOpcRelationship interface pointers.

When to implement

Never. Custom implementations of this interface are not supported.

Members

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

Methods

The IOpcRelationshipEnumerator interface has these methods.

MethodDescription
Clone

Creates a copy of the current enumerator and all its descendants.

GetCurrent

Gets the IOpcRelationship interface pointer at the current position of the enumerator.

MoveNext

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

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

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Msopc.h

IDL

Msopc.idl

See also

Core Packaging Interfaces
Overviews
Getting Started with the Packaging API
Reference
IOpcRelationshipSet
Packaging API Reference
Packaging API Samples

 

 

Community Additions

ADD
Show:
© 2014 Microsoft