ActiveDrive.Mount Method 

IT Hit WebDAV for .NET

Mounts drive to local file system.

[Visual Basic]
Public Sub Mount()
[C#]
public void Mount();

Example

The following example demonstrates how to install file system driver, reboot computer, set license and mount a new WebDAV drive using IT Hit Map WebDAV Drive Core API.

        
using ITHit.MapWebDAVDrive.Core;
...
Management.InstallDriver("MyDriveMappingAppID");
System.Diagnostics.Process.Start("ShutDown", "/r /t 0");
...
string license = @"<?xml version='1.0' ...
Management.SetLicense(license);
...
ActiveDrive drive = new ActiveDrive('z', new Uri("http://dav.webdavsystem.com"), "User1", "pwd");
drive.Mount();
        
      

See Also

ActiveDrive Class | ITHit.MapWebDAVDrive.Core Namespace