Поділитися через


DataCacheLocalCacheProperties.InvalidationPolicy Property

Gets the invalidation policy for items in the local cache.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)

Usage

'Usage
Dim instance As DataCacheLocalCacheProperties
Dim value As DataCacheLocalCacheInvalidationPolicy

value = instance.InvalidationPolicy

Syntax

'Declaration
Public ReadOnly Property InvalidationPolicy As DataCacheLocalCacheInvalidationPolicy
public DataCacheLocalCacheInvalidationPolicy InvalidationPolicy { get; }
public:
property DataCacheLocalCacheInvalidationPolicy InvalidationPolicy {
    DataCacheLocalCacheInvalidationPolicy get ();
}
/** @property */
public DataCacheLocalCacheInvalidationPolicy get_InvalidationPolicy ()
public function get InvalidationPolicy () : DataCacheLocalCacheInvalidationPolicy

Property Value

Returns DataCacheLocalCacheInvalidationPolicy.

Remarks

The returned policy is one of two possible values: TimeoutBased or NotificationBased. Note that even if the policy is NotificationBased, the timeout still applies. In this case, notifications provide an additional mechanism to check for updates to locally cached items.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

See Also

Reference

DataCacheLocalCacheProperties Class
DataCacheLocalCacheProperties Members
Microsoft.ApplicationServer.Caching Namespace

Other Resources

Cache Clients and Local Cache
Enable Local Cache

  2011-08-26