AutoLockFilter Class |
Namespace: ITHit.FileSystem.Windows
The AutoLockFilter type exposes the following members.
Name | Description | |
---|---|---|
AutoLockFilter |
Creates instance of this class.
| |
AutoLockFilter(HashSetString) |
Creates instance of this class and sets IgnoreList.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FilterAsync |
Allows filtering file system items.
(Overrides FileSystemFilterFilterAsync(SyncDirection, OperationType, String, FileSystemItemType, String, IOperationContext).) | |
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 | |
---|---|---|
IgnoreList |
Calling applications list to ignore while auto-locking.
|
If the application specified in IgnoreList list opens a file handle, the file will NOT be auto-locked.
Typically, you would want to ignore system applications that open documents for reading, such as Windows Explorer (explorer.exe) and Windows Indexing Service (SearchProtocolHost.exe).
You would also want to ignore applications that do not keep the open file handle when the document is being edited, such as Notepad (notepad.exe), Notepad++ (notepad++.exe), WordPad (wordpad.exe). There is no way to auto-lock the document when such application opens a file, because there is no indication that the file is opened.