共用方式為


IRestrictedAccess.SingleConnection 屬性

Gets or sets the Boolean property that specifies whether access to the server is restricted to a single user.

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Property SingleConnection As Boolean 
    Get 
    Set
'用途
Dim instance As IRestrictedAccess 
Dim value As Boolean 

value = instance.SingleConnection

instance.SingleConnection = value
bool SingleConnection { get; set; }
property bool SingleConnection {
    bool get ();
    void set (bool value);
}
abstract SingleConnection : bool with get, set
function get SingleConnection () : boolean 
function set SingleConnection (value : boolean)

屬性值

型別:System.Boolean
A Boolean value that specifies whether access to the server is restricted to a single user.If True, access to the server is restricted to a single user.If False (default), access to the server is not restricted and multiple users can connect.

請參閱

參考

IRestrictedAccess 介面

Microsoft.SqlServer.Management.Common 命名空間