Udostępnij za pośrednictwem


DkmTransportConnection.RemoveDirectory(String, Boolean) Method

Definition

Removes a directory on the target computer.

public:
 void RemoveDirectory(System::String ^ RemoteDirectoryPath, bool Recursive);
public:
 void RemoveDirectory(Platform::String ^ RemoteDirectoryPath, bool Recursive);
void RemoveDirectory(std::wstring const & RemoteDirectoryPath, bool Recursive);
public void RemoveDirectory (string RemoteDirectoryPath, bool Recursive);
member this.RemoveDirectory : string * bool -> unit
Public Sub RemoveDirectory (RemoteDirectoryPath As String, Recursive As Boolean)

Parameters

RemoteDirectoryPath
String

[In] Path to the remote directory that will be removed. Environment variables will be expanded (ex: %TMP%\MyDirectory). The directory cannot be a relative path.

Recursive
Boolean

[In] True if all files and subdirectories under 'RootDirectoryPath' should be removed. If false, this operation will fail unless the directory is empty.

Applies to