Class FileDependency
Inheritance
System.Object
FileDependency
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class FileDependency : CacheDependency
Constructors
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 |
|
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 |
|
DateTime |
startAfter |
|
Properties
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 |
|