ClearWebCaptureCommands
文件結構
描述
移除所選文件目錄的 /SpiderInfo 項目及其 ISO Web Capture 命令中繼資料
語法
Delphi
Function ClearWebCaptureCommands: Integer;傳回值
| 0 | 移除前沒有可計數的有效命令陣列 |
|---|---|
| N | 移除前存在的命令項目數量 |
失敗行為
在沒有文件或目錄可用、/SpiderInfo 不存在,或其命令陣列無法使用時,傳回 0。若目錄存在 /SpiderInfo 項目,即使格式錯誤或不含有效命令陣列,也會予以移除
備註
此函式會移除整個 /SpiderInfo 目錄項目,而不只是清除其 /C 陣列。它僅變更中繼資料,不執行任何網路作業
另請參閱
AddWebCaptureCommand, GetWebCaptureCommandCount, GetWebCaptureCommand