Gets or sets the name of a file that invalidates the cache when it changes (e.g. the data source).
Namespace:
C1.Web.C1WebReportAssembly: C1.Web.C1WebReport.2 (in C1.Web.C1WebReport.2.dll)
Syntax
C# |
---|
[EditorAttribute(typeof(FileNameEditor), typeof(UITypeEditor))] [DefaultValueAttribute("")] [NotifyParentPropertyAttribute(true)] public string FileDependency { get; set; } |
Visual Basic (Declaration) |
---|
<EditorAttribute(GetType(FileNameEditor), GetType(UITypeEditor))> _ <DefaultValueAttribute("")> _ <NotifyParentPropertyAttribute(True)> _ Public Property FileDependency As String Get Set |
Remarks
The report definition file used by the control is always set as a dependency (when it changes, cached reports are automatically discarded).
You can select an additional explicit file dependency using the FileDependency property.
Examples
The following code adds a dependency on a SGL database file. If the report definition or the underlying report data change, cached reports will be automatically discarded and new reports will be generated to reflect the changes:
Copy CodeVisual Basic
' add dependency on SQL server data file _c1wr.Cache.FileDependency = "c:\MSSQL7\Data\pubs.mdf" |
Copy CodeC#
// add dependency on SQL server data file _c1wr.Cache.FileDependency = @"c:\MSSQL7\Data\pubs.mdf"; |