IOpcDigitalSignatureManager::SetSignatureOriginPartName method (msopc.h)

Sets the part name of the Digital Signature Origin part to the name represented by a specified IOpcPartUri interface pointer.

Syntax

HRESULT SetSignatureOriginPartName(
  [in] IOpcPartUri *signatureOriginPartName
);

Parameters

[in] signatureOriginPartName

A pointer to an IOpcPartUri interface pointer that represents the desired part name for the Digital Signature Origin part.

Return value

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

Return code/value Description
S_OK
The method succeeded.
OPC_E_DS_SIGNATURE_ORIGIN_EXISTS
0x80510054
A Digital Signature Origin part already exists in the package and cannot be renamed.
OPC_E_DUPLICATE_PART
0x8051000B
A part with the specified part name already exists in the current package.

Remarks

If the Digital Signature Origin part exists or if the part name that is in the signatureOriginPartName parameter is being used for another part, this method will fail.

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

Core Packaging Interfaces

Digital Signatures Overview

Getting Started with the Packaging API

IOpcDigitalSignatureManager

Overviews

Packaging API Programming Guide

Packaging API Reference

Packaging API Samples

Packaging Digital Signature Interfaces

Packaging Interfaces

Reference