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 |
---|---|
|
The method succeeded. |
|
A Digital Signature Origin part already exists in the package and cannot be renamed. |
|
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
Getting Started with the Packaging API
Overviews
Packaging API Programming Guide
Packaging Digital Signature Interfaces
Reference