TempFileCollection.Delete 方法
定义
删除此集合中没有标记为保留的临时文件。Deletes the temporary files within this collection that were not marked to be kept.
public:
void Delete();
public void Delete ();
member this.Delete : unit -> unit
Public Sub Delete ()
注解
Delete方法会检查集合中的每个文件,以逐个确定是否要保留或删除该文件。The Delete method examines each file in the collection to determine, on an individual basis, whether the file is to be kept or deleted. 使用采用参数的 add 方法将文件添加到集合时,可以将文件显式标记为保留 keepFile 。Files can be explicitly marked to be kept when added to the collection using add methods that take a keepFile parameter. 使用没有参数的重载向集合添加文件时, AddExtension keepFile 属性的值将用作默认的 " KeepFiles 保留文件" 指示器。When adding a file to the collection using the AddExtension overload that does not have a keepFile parameter the value of the KeepFiles property is used as the default keep file indicator.