本文整理汇总了VB.NET中System.Web.Hosting.VirtualPathProvider.GetCacheDependency方法的典型用法代码示例。如果您正苦于以下问题:VB.NET VirtualPathProvider.GetCacheDependency方法的具体用法?VB.NET VirtualPathProvider.GetCacheDependency怎么用?VB.NET VirtualPathProvider.GetCacheDependency使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Web.Hosting.VirtualPathProvider 的用法示例。
在下文中一共展示了VirtualPathProvider.GetCacheDependency方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的VB.NET代码示例。
示例1: GetCacheDependency
Public Overrides Function GetCacheDependency(ByVal virtualPath As String, ByVal virtualPathDependencies As IEnumerable, ByVal utcStart As Date) As CacheDependency
If (IsPathVirtual(virtualPath)) Then
Dim fullPathDependencies As System.Collections.Specialized.StringCollection
fullPathDependencies = Nothing
' Get the full path to all dependencies.
For Each virtualDependency As String In virtualPathDependencies
If fullPathDependencies Is Nothing Then
fullPathDependencies = New System.Collections.Specialized.StringCollection
End If
fullPathDependencies.Add(virtualDependency)
Next
If fullPathDependencies Is Nothing Then
Return Nothing
End If
Dim fullPathDependenciesArray As String()
fullPathDependencies.CopyTo(fullPathDependenciesArray, 0)
Return New CacheDependency(fullPathDependenciesArray, utcStart)
Else
Return Previous.GetCacheDependency(virtualPath, virtualPathDependencies, utcStart)
End If
End Function
开发者ID:VB.NET开发者,项目名称:System.Web.Hosting,代码行数:27,代码来源:VirtualPathProvider.GetCacheDependency
注:本文中的System.Web.Hosting.VirtualPathProvider.GetCacheDependency方法示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论