共用方式為


BusinessLogicConnection.State 屬性

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Gets a string that describes the state of the connection.

命名空間:  Microsoft.SqlServer.Replication.BusinessLogicSupport
組件:  Microsoft.SqlServer.Replication.BusinessLogicSupport (在 Microsoft.SqlServer.Replication.BusinessLogicSupport.dll 中)

語法

'宣告
Public ReadOnly Property State As ConnectionState 
    Get
'用途
Dim instance As BusinessLogicConnection 
Dim value As ConnectionState 

value = instance.State
public ConnectionState State { get; }
public:
virtual property ConnectionState State {
    ConnectionState get () sealed;
}
abstract State : ConnectionState 
override State : ConnectionState
final function get State () : ConnectionState

屬性值

型別:System.Data.ConnectionState
The state of the connection.

實作

IDbConnection.State

請參閱

參考

BusinessLogicConnection 類別

Microsoft.SqlServer.Replication.BusinessLogicSupport 命名空間