ISfcHasConnection.GetConnection 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| GetConnection() |
获取备份存储的连接查询。 假定一次存在一个打开查询的默认值。 |
| GetConnection(SfcObjectQueryMode) |
获取与支持存储的连接,以支持请求的查询处理模式。 支持多个打开查询的任何连接都必须假定 GetConnection() 返回的常规连接随时可能繁忙。 <param name=“activeQueriesMode”>缓存结果,或使用需要单个或多个打开查询的实时数据读取器迭代器。</param> |
GetConnection()
获取备份存储的连接查询。 假定一次存在一个打开查询的默认值。
public Microsoft.SqlServer.Management.Common.ISfcConnection GetConnection();
abstract member GetConnection : unit -> Microsoft.SqlServer.Management.Common.ISfcConnection
Public Function GetConnection () As ISfcConnection
返回
要使用的连接。
适用于
GetConnection(SfcObjectQueryMode)
获取与支持存储的连接,以支持请求的查询处理模式。 支持多个打开查询的任何连接都必须假定 GetConnection() 返回的常规连接随时可能繁忙。
<param name=“activeQueriesMode”>缓存结果,或使用需要单个或多个打开查询的实时数据读取器迭代器。</param>public Microsoft.SqlServer.Management.Common.ISfcConnection GetConnection(Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode activeQueriesMode);
abstract member GetConnection : Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode -> Microsoft.SqlServer.Management.Common.ISfcConnection
Public Function GetConnection (activeQueriesMode As SfcObjectQueryMode) As ISfcConnection
参数
- activeQueriesMode
- SfcObjectQueryMode
返回
要使用的连接,或为 null 以使用缓存模式。 缓存模式可避免连接和打开数据读取器问题。