DirectoryHelper.ClearDirectory Method

HD.Common

DirectoryHelperClearDirectory Method Helper帮助文档
清空指定目录下所有文件及子目录,但该目录依然保存.

Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void ClearDirectory(
	string directoryPath
)
Public Shared Sub ClearDirectory ( 
	directoryPath As String
)
public:
static void ClearDirectory(
	String^ directoryPath
)
static member ClearDirectory : 
        directoryPath : string -> unit 

Parameters

directoryPath
Type: SystemString
指定目录的绝对路径
See Also

Reference