次の方法で共有


ConnectionManager.InUse プロパティ

接続が使用中であるかどうかを示す Boolean プロパティ値を取得または設定します。

名前空間:  Microsoft.SqlServer.Management.Common
アセンブリ:  Microsoft.SqlServer.ConnectionInfo (Microsoft.SqlServer.ConnectionInfo.dll)

構文

'宣言
Public Property InUse As Boolean 
    Get 
    Set
'使用
Dim instance As ConnectionManager 
Dim value As Boolean 

value = instance.InUse

instance.InUse = value
public bool InUse { get; set; }
public:
property bool InUse {
    bool get ();
    void set (bool value);
}
member InUse : bool with get, set
function get InUse () : boolean 
function set InUse (value : boolean)

プロパティ値

型: Boolean
接続が使用中であるかどうかを示す Boolean オブジェクト値です。 True の場合、接続は使用中です。 False (既定値) の場合、接続は使用されていません。

関連項目

参照

ConnectionManager クラス

Microsoft.SqlServer.Management.Common 名前空間