Namespace: ITHit.MapWebDAVDrive.Core
The DriveEvents type exposes the following members.
Name | Description | |
---|---|---|
DriveEvents |
Initializes an empty instance of the DriveEvents class.
| |
DriveEvents(String, String) |
Initializes a new instance of DriveEvents class with the specified external applications.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
OnAfterFileCreate |
Path to external application executed after file creation.
| |
OnBeforeFileContentUpdate |
Path to external application executed before file content update.
|
The user applications specified in this class will be executed when items are being created or updated. Usually you will use this events to call your application during file content update. In your application you can request additional information from the user about the item being updated and submit this data to server or save it anywhere else. Usually you will save the data in item custom properties.
The drive letter, URL of the item and item lock token, if any, are passed as application parameters. In your application you can use the IDriveServiceManager.GetDrive() method and than call DriveSettings.GetSession() method to get WebDavSession object for manipulating the item.
The Map WebDAV Drive analyzes the return code of the application. If your application returns 0 the operation succeeds. It any other value is returned the operation failed.