• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Class FileDependency

FileDependency class is used to provide file based dependency to the user. If items are dependent on that file the items will be removed on file update.

Inheritance
System.Object
CacheDependency
FileDependency
Inherited Members
CacheDependency.AddDependencies(CacheDependency[])
CacheDependency.Dependencies
CacheDependency.Dispose()
CacheDependency.DependencyDispose()
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class FileDependency : CacheDependency, IDisposable

Constructors

Name Description
FileDependency(String)

Initializes a new instance of the FileExpiration class that monitors a file or directory for changes.

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.

FileDependency(String[])

Initializes a new instance of the FileExpiration class that monitors an array of file paths (to files or directories) for changes.

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.

Properties

Name Description
FileNames

Get the array of file names

StartAfterTicks

StartAfterTicks shows the time after which dependency is to be started

Back to top Copyright © 2017 Alachisoft