Class FileDependency
Inheritance
System.Object
FileDependency
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class FileDependency : CacheDependency, IDisposable
FileDependency(String)
Initializes a new instance of the FileExpiration class that monitors a file or directory for changes.
Declaration
public FileDependency(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
FileDependency(String, DateTime)
Initializes a new instance of the FileExpiration class that monitors a file or
directory for changes and indicates when change tracking is to begin.
Declaration
public FileDependency(string fileName, DateTime startAfter)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
System.DateTime |
startAfter |
|
FileDependency(String[])
Initializes a new instance of the FileExpiration class that monitors an array of file paths (to files or directories) for changes.
Declaration
public FileDependency(string[] fileName)
Parameters
Type |
Name |
Description |
System.String[] |
fileName |
|
FileDependency(String[], DateTime)
Initializes a new instance of the FileExpiration class that monitors an array of file
paths (to files or directories) for changes and specifies a time when
change monitoring begins.
Declaration
public FileDependency(string[] fileName, DateTime startAfter)
Parameters
Type |
Name |
Description |
System.String[] |
fileName |
|
System.DateTime |
startAfter |
|
fileNames
Get the array of file names
Declaration
public string[] fileNames { get; }
Property Value
Type |
Description |
System.String[] |
|
StartAfterTicks
Declaration
public long StartAfterTicks { get; }
Property Value
Type |
Description |
System.Int64 |
|