共用方式為


InUse 屬性

Gets or sets the Boolean property value that specifies whether the connection is being used.

命名空間:  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)

屬性值

型別:System. . :: . .Boolean
A Boolean object value that specifies whether the connection is in use.
If True, the connection is in use.
In False (default), the connection is not in use.