Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IOpcRelationshipSet::DeleteRelationship method

Deletes a specified IOpcRelationship interface pointer from the set.

Syntax


HRESULT DeleteRelationship(
  [in] LPCWSTR relationshipIdentifier
);

Parameters

relationshipIdentifier [in]

The unique identifier of a relationship.

The IOpcRelationship interface pointer to be deleted is the pointer to the relationship object that represents the relationship the specified identifier.

Return value

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

Return code/valueDescription
S_OK

The method succeeded.

E_POINTER

The relationshipIdentifier parameter is NULL.

OPC_E_NO_SUCH_RELATIONSHIP
0x80510048

The specified relationship does not exist.

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

When an IOpcRelationship interface pointer is deleted from the set, the relationship it represents is not saved when the package is saved.

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

IOpcRelationshipSet
Overviews
Getting Started with the Packaging API
Relationships Overview
Reference
Packaging Errors
Packaging API Reference
Packaging API Samples
External Resources
ECMA-376 OpenXML

 

 

Community Additions

ADD
Show:
© 2015 Microsoft