SetTimeStampRetryCount
頁面操作
需要 Enterprise 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibEnterprise(PDFlibEnterprise 單元)建立程式庫;Enterprise DLL 與 ActiveX 組建原樣提供。其他版本保留此方法,方法會傳回 0、空字串或 False,並將 LastErrorCode 設為 900(PDFLIB_ERROR_ENTERPRISE_REQUIRED)
描述
設定 TSA 重試次數
語法
Delphi
Function SetTimeStampRetryCount(RetryCount: Integer): Integer; Virtual;ActiveX
Function PDFlib::SetTimeStampRetryCount(RetryCount As Long) As LongDLL
int DLSetTimeStampRetryCount(int InstanceID, int RetryCount);參數
| RetryCount | 傳輸失敗或 5xx 回應後額外嘗試 0..10 次;超過 10 的值以 10 計 |
|---|
傳回值
成功儲存政策時傳回 1,輸入為負值時傳回 0
備註
重複 POST 前會以線性退避等待(250 ms 乘以嘗試次數);擷取端把 0..10 以外的任何值視為單次嘗試