共用方式為


RegisteredServer.LoginSecure 屬性

Gets or sets the Boolean property value that specifies whether the connection is authenticated by Windows Authentication.

命名空間:  Microsoft.SqlServer.Management.Smo.RegisteredServers
組件:  Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)

語法

'宣告
Public Property LoginSecure As Boolean 
    Get 
    Set
'用途
Dim instance As RegisteredServer 
Dim value As Boolean 

value = instance.LoginSecure

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

屬性值

型別:System.Boolean
A Boolean value that specifies whether the connection is authenticated by Windows Authentication.If True (default), the connection is authenticated by Windows Authentication.If False, the connection is authenticated by using SQL Server standard authentication.

請參閱

參考

RegisteredServer 類別

Microsoft.SqlServer.Management.Smo.RegisteredServers 命名空間

其他資源

管理已註冊的伺服器