ClearWebCaptureCommands
文档结构
描述
移除所选文档目录的 /SpiderInfo 条目及其 ISO Web Capture 命令元数据
语法
Delphi
Function ClearWebCaptureCommands: Integer;返回值
| 0 | 移除前没有统计到有效的命令数组 |
|---|---|
| N | 移除前存在的命令条目数量 |
失败行为
当没有文档或目录可用、/SpiderInfo 不存在,或其命令数组不可用时,返回 0。如果目录中存在 /SpiderInfo 条目,即使它格式错误或不包含有效命令数组,也会被移除
备注
该函数移除整个 /SpiderInfo 目录条目,而不是只清除其 /C 数组。它仅更改元数据,不执行任何网络操作
另请参阅
AddWebCaptureCommand, GetWebCaptureCommandCount, GetWebCaptureCommand