本文整理汇总了VB.NET中System.Web.HttpCacheValidateHandler代理的典型用法代码示例。如果您正苦于以下问题:VB.NET HttpCacheValidateHandler代理的具体用法?VB.NET HttpCacheValidateHandler怎么用?VB.NET HttpCacheValidateHandler使用的例子?那么恭喜您, 这里精选的代理代码示例或许可以为您提供帮助。
在下文中一共展示了HttpCacheValidateHandler代理的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: HttpCacheValidateHandler
Private Sub Page_Load(sender As Object, e As EventArgs)
Response.Cache.AddValidationCallback(New HttpCacheValidateHandler(AddressOf CacheValidate1), Nothing)
End Sub
Public Sub CacheValidate1(context As HttpContext, data As Object, ByRef status As HttpValidationStatus)
If context.Request.QueryString("Valid") = "false" Then
status = HttpValidationStatus.Invalid
Else
status = HttpValidationStatus.Valid
End If
End Sub