IOpcPackage::GetPartSet method

Gets a part set object that contains IOpcPart interface pointers.

Syntax


HRESULT GetPartSet(
  [out, retval] IOpcPartSet **partSet
);

Parameters

partSet [out, retval]

A pointer to the IOpcPartSet interface of the part set object that contains IOpcPart interface pointers to part objects.

Return value

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

Return codeDescription
S_OK

The method succeeded.

E_POINTER

The partSet 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.

 

Remarks

The IOpcPart interface is only used to represent parts in the package that are not Relationships parts.

For more information about packages, parts, relationships, and the interfaces that represent them, see the Open Packaging Conventions Fundamentals and the ECMA-376 OpenXML, 1st Edition, Part 2: Open Packaging Conventions (OPC).

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

Opcobjectmodel.idl

See also

IOpcPackage
Overviews
Open Packaging Conventions Fundamentals
Packages Overview
Getting Started with the Packaging API
Parts Overview
Reference
IOpcFactory
IOpcPartSet
IOpcRelationshipSet
Packaging Errors
Packaging API Reference
Packaging API Samples
External Resources
ECMA-376 OpenXML

 

 

Community Additions

ADD
Show: