GetWebCaptureCommand
文件結構
描述
從所選文件目錄的 /SpiderInfo /C 陣列讀取一個 ISO Web Capture 命令字典
語法
Delphi
Function GetWebCaptureCommand(Index: Integer; Out Command: TPDFlibWebCaptureCommand): Integer;傳回值
| 0 | 沒有讀到有效命令 |
|---|---|
| 1 | Command 包含所請求的中繼資料 |
失敗行為
當 Index 超出從 1 起算的命令範圍、被索引的物件不是命令字典,或其必要的 /URL 字串遺失或為空時,傳回 0。失敗時,Command 會重設為空 URL、Levels 1、Flags 0 與空選用字串
備註
Index 從 1 起算。缺少的 /L 與 /F 項目保留預設值 1 與 0。PostData 接受 PDF 字串或解碼後的 PDF 串流,而 URL、ContentType 與 Headers 則從 PDF 字串讀取。此 API 只讀取 ISO Web Capture 命令中繼資料,不會擷取或爬取記錄的 URL
另請參閱
TPDFlibWebCaptureCommand, GetWebCaptureCommandCount, AddWebCaptureCommand, ClearWebCaptureCommands