Partager via


CacheItemPolicy.Priority Property

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

Gets or sets a priority setting that is used to determine whether to evict a cache entry.

Namespace: Microsoft.Practices.EnterpriseLibrary.Caching.Runtime.Caching
Assembly: Microsoft.Practices.EnterpriseLibrary.Caching.Silverlight (in Microsoft.Practices.EnterpriseLibrary.Caching.Silverlight.dll) Version: 5.0.505.0

Syntax

public CacheItemPriority Priority { get; set; }
'Declaration
Public Property Priority As CacheItemPriority
    Get
    Set
public:
property CacheItemPriority Priority {
    CacheItemPriority get ();
    void set (CacheItemPriority value);
}

Return Value

One of the enumeration values that indicates the priority for eviction. The default priority value is System.Runtime.Caching.CacheItemPriority.Default, which means no priority.

See Also

CacheItemPolicy Class

Microsoft.Practices.EnterpriseLibrary.Caching.Runtime.Caching Namespace