BusinessLogicConnection 类
此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。
Represents a business logic connection.
继承层次结构
System.Object
Microsoft.SqlServer.Replication.BusinessLogicSupport.BusinessLogicConnection
命名空间: Microsoft.SqlServer.Replication.BusinessLogicSupport
程序集: Microsoft.SqlServer.Replication.BusinessLogicSupport(在 Microsoft.SqlServer.Replication.BusinessLogicSupport.dll 中)
语法
声明
Public Class BusinessLogicConnection _
Implements IDbConnection, IDisposable
用法
Dim instance As BusinessLogicConnection
public class BusinessLogicConnection : IDbConnection,
IDisposable
public ref class BusinessLogicConnection : IDbConnection,
IDisposable
type BusinessLogicConnection =
class
interface IDbConnection
interface IDisposable
end
public class BusinessLogicConnection implements IDbConnection, IDisposable
BusinessLogicConnection 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
BusinessLogicConnection() | Initializes a new instance of the BusinessLogicConnection class. | |
BusinessLogicConnection(String) | Initializes a new instance of the BusinessLogicConnection class. |
页首
属性
名称 | 说明 | |
---|---|---|
ConnectionString | Gets or sets the string used to open the connection. | |
ConnectionTimeout | Gets the time to wait for a connection to open. | |
Database | Gets the name of the current database after a connection is opened. | |
State | Gets a string that describes the state of the connection. |
页首
方法
名称 | 说明 | |
---|---|---|
BeginTransaction() | Starts a database transaction. | |
BeginTransaction(IsolationLevel) | Starts a database transaction with the specified isolation level. | |
ChangeDatabase | Changes the current database for an open connection. | |
Close | Closes the connection to the database. | |
CreateCommand | Creates and returns an IDbCommand object associated with the current connection. | |
Dispose | Releases all resources used by the BusinessLogicConnection. | |
Equals | (从 Object 继承。) | |
Finalize | (从 Object 继承。) | |
GetHashCode | (从 Object 继承。) | |
GetType | (从 Object 继承。) | |
MemberwiseClone | (从 Object 继承。) | |
Open | Opens a database connection with the settings specified by the ConnectionString. | |
ToString | (从 Object 继承。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。