共用方式為


IXpsSigningOptions::GetCustomReferences 方法 (xpsdigitalsignature.h)

取得 IOpcSignatureReferenceSet 介面的指標,其中包含一組簽章自定義參考。

語法

HRESULT GetCustomReferences(
  [out, retval] IOpcSignatureReferenceSet **customReferenceSet
);

參數

[out, retval] customReferenceSet

IOpcSignatureReferenceSet 介面的指標,其中包含一組簽章自定義參考。

傳回值

如果方法成功,它會傳回S_OK;否則會傳回 HRESULT 錯誤碼。

備註

這個方法傳回的自定義參考集是空的。 若要新增此集合的自定義參考,請呼叫 customReferenceSet 中傳回之介面的 Create 方法。

如果必須簽署自定義物件,則必須將該對象的參考新增至自定義物件集。 如需新增自定義參考的資訊,請參閱 GetCustomReferences

規格需求

需求
最低支援的用戶端 Windows 7 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 R2 [僅限桌面應用程式]
目標平台 Windows
標頭 xpsdigitalsignature.h

另請參閱

IOpcSignatureReferenceSet

IOpcSigningOptions

IXpsSigningOptions

XML Paper Specification