OutputCacheAttribute.IsChildActionCacheActive(ControllerContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回值,這個值表示子動作快取是否作用中。
public static bool IsChildActionCacheActive(System.Web.Mvc.ControllerContext controllerContext);
static member IsChildActionCacheActive : System.Web.Mvc.ControllerContext -> bool
Public Shared Function IsChildActionCacheActive (controllerContext As ControllerContext) As Boolean
參數
- controllerContext
- ControllerContext
控制器內容。
傳回
如果子動作快取為使用中,則為 true;否則為 false。