| Visual Basic (Declaration) | |
|---|---|
Public Property CacheManager As ICacheManager | |
| Visual Basic (Usage) | |
|---|---|
| |
| C# | |
|---|---|
public ICacheManager CacheManager {get; set;} | |
| Managed Extensions for C++ | |
|---|---|
public: __property ICacheManager* get_CacheManager(); public: __property void set_CacheManager( ICacheManager* value ); | |
| C++/CLI | |
|---|---|
public: property ICacheManager^ CacheManager { ICacheManager^ get(); void set (ICacheManager^ value); } | |
Return Value
Returns the ICacheManager of the ObjectContext or null if no manager has been specified.The following example shows how to set the SimpleCacheManager.
| C# | |
|---|---|
// Creates a new ObjectContext that uses an MsSql Server as storage. | |
The ICacheManager holds instances of created persistent
objects as long as they do not expire. If the cache contains still an instance of a persistent object
and the object is to be reloaded the cached instance is re-used.
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family