IOpcRelationshipSet::GetEnumerator method (msopc.h)

Gets an enumerator of IOpcRelationship interface pointers in the set.

Syntax

HRESULT GetEnumerator(
  [out, retval] IOpcRelationshipEnumerator **relationshipEnumerator
);

Parameters

[out, retval] relationshipEnumerator

A pointer to the IOpcRelationshipEnumerator interface of the enumerator of IOpcRelationship interface pointers in the set.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_POINTER
The relationshipEnumerator parameter is NULL.
Package Consumption error
An HRESULT error code from the Package Consumption Error Group.
Part URI error
An HRESULT error code from the Part URI Error Group.

Requirements

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

See also

Getting Started with the Packaging API

IOpcRelationshipSet

Overviews

Packaging API Reference

Packaging API Samples

Packaging Errors

Reference

Relationships Overview