IOpcPart::GetName method (msopc.h)

Gets a part URI object that represents the part name.

Syntax

HRESULT GetName(
  [out, retval] IOpcPartUri **name
);

Parameters

[out, retval] name

A pointer to the IOpcPartUri interface of the part URI object that represents the part name.

Part names conform to specific syntax specified in the OPC.

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 name parameter is NULL.

Remarks

For more information about parts, see the Open Packaging Conventions Fundamentals and the OPC.

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 only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header msopc.h

See also

ECMA-376 OpenXML

External Resources

Getting Started with the Packaging API

IOpcPart

Open Packaging Conventions Fundamentals

Overviews

Packaging API Reference

Packaging API Samples

Packaging Errors

Parts Overview

Reference