HttpCachePolicy.HasSlidingExpiration 方法

定義

取得值,指定快取是否具有滑動期限原則。Gets a value which specifies whether the cache has a sliding expiration policy.

public:
 bool HasSlidingExpiration();
public bool HasSlidingExpiration ();
member this.HasSlidingExpiration : unit -> bool
Public Function HasSlidingExpiration () As Boolean

傳回

Boolean

如果快取具有滑動期限原則,則為 true;否則為 falsetrue if the cache has a sliding expiration policy; otherwise, false.

適用於