Compartilhar via


DriveManagementIntrinsics.Remove(String, Boolean, String) Method

Definition

Removes the specified drive.

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

Parameters

driveName
String

The name of the drive to be removed.

force
Boolean

Determines whether drive should be forcefully removed even if there was errors.

scope
String

The ID of the scope to remove the drive from. This may be one of the scope keywords like global or local, or it may be an numeric offset of the scope generation relative to the current scope. If the scopeID is null or empty the local scope is used.

Applies to