Settings.LoginMode Property

Gets or sets the logon mode for SQL Server.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property LoginMode As ServerLoginMode 
    Get 
    Set
'Usage
Dim instance As Settings 
Dim value As ServerLoginMode 

value = instance.LoginMode

instance.LoginMode = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public ServerLoginMode LoginMode { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property ServerLoginMode LoginMode {
    ServerLoginMode get ();
    void set (ServerLoginMode value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member LoginMode : ServerLoginMode with get, set
function get LoginMode () : ServerLoginMode 
function set LoginMode (value : ServerLoginMode)

Property Value

Type: Microsoft.SqlServer.Management.Smo.ServerLoginMode
A ServerLoginMode object value that specifies the logon mode for the instance of SQL Server.

Examples

Configuring SQL Server in SMO

See Also

Reference

Settings Class

Microsoft.SqlServer.Management.Smo Namespace