IXpsSignatureManager::SetSignatureOriginPartName method

Sets the part name of the signature origin part.

Syntax

HRESULT SetSignatureOriginPartName(
  [in] IOpcPartUri *signatureOriginPartName
);

Parameters

  • signatureOriginPartName [in]
    A pointer to an IOpcPartUri interface that contains the part name of the signature origin part.

Return value

If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code shown in the table that follows or an HRESULT error code that is returned by IOpcDigitalSignatureManager::SetSignatureOriginPartName.

Return code Description
S_OK

The method succeeded.

XPS_E_PACKAGE_NOT_OPENED

An XPS package was not loaded into the digital signature manager before calling this method.

 

Remarks

The part name cannot be set if any signatures exist.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Xpsdigitalsignature.h

IDL

XpsDigitalSignature.idl

See also

IXpsSignatureManager

IOpcPartUri

XML Paper Specification