.net2005中字符串连接标识符含义

来源:百度知道 编辑:UC知道 时间:2024/05/29 16:52:00
以下为代码,请问哪位仁兄可以帮助指导解释一下:
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<!--
This connection is inherited from the ASP.NET Quickstart Web.config file
Uncomment this section to edit the sample locally

<add name="Pubs" connectionString="Server=(local)\SQLExpress;Integrated Security=True;Database=pubs;Persist Security Info=True"
providerName="System.Data.SqlClient" />
<add name="Northwind" connectionString="Server=(local)\SQLExpress;Integrated Security=True;Database=Northwind;Persist Security Info=True"
providerName="System.Data.SqlClient" />
<add name="Contacts" connectionString="Server=(local)\SQLExpress;Integrated Security=True;Database=Contacts;Persist Security Info=True"
providerName="System.Data.SqlClient" />

<system.web>
<pages styleSheetTheme="Default"/>
可选的 String 属性。

指定在控件声明之前用于应用主题的“已命名主题”文件夹的名称,这与控件声明之后定义要应用主题的主题属性形成对比。

此属性是 .NET Framework 2.0 版中的新属性。

默认值为空字符串 ("")。

<caching>为 Web 应用程序配置缓存设置。
<sqlCacheDependency enabled="true" pollTime="1000">
可选的元素。

为 ASP.NET 应用程序配置 SQL 缓存依赖项。

enabled
必需的 Boolean 属性。

指示是否轮询更改。

pollTime
可选的 Int32 属性。

设置 SqlCacheDependency 轮询数据库表的更改的频率。此值对应于连续两次轮询之间的毫秒数。不能设置为小于 500 毫秒的值。

默认值为 1 分钟。

<databases>
可选的元素。

包含一个或多个可以由 SqlCacheDependency 使用的命名的 SQL 连接。

<add name="Pubs" connectionStringName="Pubs"/>
可选的元素。

向配置集合添加一个 SqlCacheDependencyDatabase 对象。

</databases>
</sqlCacheDependency>
</caching>
</system.web>