Click or drag to resize

ActiveDrive Class

IT Hit WebDAV Classes Reference
Represents WebDAV drive mounted to the local file system.
Inheritance Hierarchy

Namespace:  ITHit.MapWebDAVDrive.Core
Assembly:  ITHit.MapWebDAVDrive.Core (in ITHit.MapWebDAVDrive.Core.dll) Version: 1.3.997.0 (1.3.997.0)
Syntax
public class ActiveDrive : DriveSettings

The ActiveDrive type exposes the following members.

Properties
  NameDescription
Public propertyVolumeLabel
Drive volume label.
(Inherited from DriveSettings.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFileWasChanged
Notify OS and cache that file was changed
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetSession
Gets WebDAV session used for accessing remote WebDAV server.
(Inherited from DriveSettings.)
Public methodGetSessionForDialogs
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodCode exampleMount
Mounts drive to local file system.
Protected methodOnVolumeLabelChanged
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnmount
Unmounts drive from local file system.
Top
Fields
  NameDescription
Public fieldAllowWindowsExplorerCustomization
Allows Windows Explorer customization.
(Inherited from DriveSettings.)
Public fieldAutoCheckOutOnUpdate
Specifies if item will be checked-out before any update if server supports versioning.
(Inherited from DriveSettings.)
Public fieldBufferUpload
Specifies if content is buffered in memory before sending to server.
(Inherited from DriveSettings.)
Public fieldClientCacheTimeOut
Sets or gets client cache timeout in seconds.
(Inherited from DriveSettings.)
Public fieldDownloadOnlyNewer
Specifies if only modified files will be downloaded.
(Inherited from DriveSettings.)
Public fieldDriveLetter
Drive letter of the mounted drive.
(Inherited from DriveSettings.)
Public fieldEvents
External applications executed during various events.
(Inherited from DriveSettings.)
Public fieldFilterAutoLock
Regular expression that specifies which files should be automatically locked when file is opened (read from server). Used only if LockBehavior is set to [!:LockBehavior.LockWhenOpen].
(Inherited from DriveSettings.)
Public fieldFilterDownload
Regular expression that specifies which files should be never downloaded from server.
(Inherited from DriveSettings.)
Public fieldFilterUpload
Regular expression that specifies which files should be never uploaded to server.
(Inherited from DriveSettings.)
Protected fieldfVolumeLabel (Inherited from DriveSettings.)
Public fieldImpersonate
Specifies if to use current user credentials when accessing WebDAV server.
(Inherited from DriveSettings.)
Public fieldLockBehavior
Specifies if item will be locked before any update or when it is opened.
(Inherited from DriveSettings.)
Public fieldLockTimeOut
The item will be automatically unlocked by server when the specified amount of time is elapsed.
(Inherited from DriveSettings.)
Public fieldLogin
User name used when connecting to WebDAV server.
(Inherited from DriveSettings.)
Public fieldPassword
Password used when connecting to WebDAV server.
(Inherited from DriveSettings.)
Public fieldPersistent
The drive is mounted each time the computer boots.
(Inherited from DriveSettings.)
Public fieldProxy
Contains HTTP proxy settings.
(Inherited from DriveSettings.)
Public fieldResumeBrokenDownloads
Specifies if canceled and broken downloads will be restored.
(Inherited from DriveSettings.)
Public fieldServerRequestTimeOut
Server requests timeout in seconds.
(Inherited from DriveSettings.)
Public fieldServerUrl
WebDAV Server URL.
(Inherited from DriveSettings.)
Public fieldShowContextMenuForVersioning
Specifies if context menus for versioning should be displayed in Windows Explorer context menus. Default is false.
(Inherited from DriveSettings.)
Public fieldShowProgress
Show upload and download progress in a tray application.
(Inherited from DriveSettings.)
Top
Remarks
Initially the drive is not mounted to the file system. To mount the drive call Mount method. To unmount the drive call Unmount.
Examples
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