IXpsSigningOptions::SetPolicy method (xpsdigitalsignature.h)
Sets the XPS_SIGN_POLICY value that represents the signing policy.
Syntax
HRESULT SetPolicy(
[in] XPS_SIGN_POLICY policy
);
Parameters
[in] policy
The logical OR of the XPS_SIGN_POLICY values to be set as the signing policy.
Return value
If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.
Remarks
If an XPS_SIGN_POLICY value is set and it does not have a corresponding part in the package being signed, only the relationship type will be signed.
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 | xpsdigitalsignature.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for