本文整理汇总了VB.NET中System.Web.Configuration.SqlCacheDependencyDatabase类的典型用法代码示例。如果您正苦于以下问题:VB.NET SqlCacheDependencyDatabase类的具体用法?VB.NET SqlCacheDependencyDatabase怎么用?VB.NET SqlCacheDependencyDatabase使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SqlCacheDependencyDatabase类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: CType
' Get the Web application configuration.
Dim webConfig _
As System.Configuration.Configuration = _
WebConfigurationManager.OpenWebConfiguration("/aspnetTest")
' Get the section.
Dim configPath As String = _
"system.web/cache/sqlCacheDependency"
Dim sqlDs _
As System.Web.Configuration.SqlCacheDependencySection = _
CType(webConfig.GetSection(configPath), System.Web.Configuration.SqlCacheDependencySection)
' Get the databases element at 0 index.
Dim sqlCdd _
As System.Web.Configuration.SqlCacheDependencyDatabase = _
sqlDs.Databases(0)