Chili.Opf3 Send comments on this topic.
SimpleCacheAttribute Class
See Also  Members   Example 
Chili.Opf3.Caching Namespace : SimpleCacheAttribute Class




Put on persistent objects to specify the caching in a declarative way.

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class SimpleCacheAttribute 
   Inherits Attribute
Visual Basic (Usage)Copy Code
Dim instance As SimpleCacheAttribute
C# 
public sealed class SimpleCacheAttribute : Attribute 
Managed Extensions for C++ 
public __gc __sealed class SimpleCacheAttribute : public Attribute 
C++/CLI 
public ref class SimpleCacheAttribute sealed : public Attribute 

Example

The following example shows how to use attribute.
C#Copy Code
            [SimpleCache(Duration = 10000)] 
            [Persistent("USER")] 
public class User 

    private string _name = null; 
  
    [Field("NAME")] 
    public string Name 
    { 
        get { return _name; } 
        set { _name = value; } 
    } 
  
    // ... Other properties and fields. 
}

Remarks

This attribute is put on persistent objects to specify the caching in a declarative way.

Inheritance Hierarchy

System.Object
   System.Attribute
      Chili.Opf3.Caching.SimpleCacheAttribute

Requirements

Namespace: Chili.Opf3.Caching

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Chili.Opf3 (in Chili.Opf3.dll)

See Also