IOpcDigitalSignatureManager::SetSignatureOriginPartName method

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

signatureOriginPartName [in]

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/valueDescription
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

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Msopc.h

IDL

OpcDigitalSignature.idl

See also

IOpcDigitalSignatureManager
Overviews
Digital Signatures Overview
Getting Started with the Packaging API
Packaging API Programming Guide
Reference
Core Packaging Interfaces
Packaging Digital Signature Interfaces
Packaging Interfaces
Packaging API Reference
Packaging API Samples

 

 

Community Additions

ADD
Show: