OutputCacheAttribute.IsChildActionCacheActive(ControllerContext) 方法

定義

傳回值,這個值表示子動作快取是否作用中。

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。

適用於