IXpsSigningOptions::SetPolicy method (xpsdigitalsignature.h)
Sets the XPS_SIGN_POLICY value that represents the signing policy.
HRESULT SetPolicy( [in] XPS_SIGN_POLICY policy );
The logical OR of the XPS_SIGN_POLICY values to be set as the signing policy.
If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.
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.
|Minimum supported client||Windows 7 [desktop apps only]|
|Minimum supported server||Windows Server 2008 R2 [desktop apps only]|