Share via


ILoginFactory.CreateSqlLogin Method

Creates an IMutableLogin object using the specified IServer object and name. The LoginType property of the created object is set to Sql.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Function CreateSqlLogin ( _
    server As IServer, _
    name As String _
) As IMutableLogin
'Usage
Dim instance As ILoginFactory
Dim server As IServer
Dim name As String
Dim returnValue As IMutableLogin

returnValue = instance.CreateSqlLogin(server, _
    name)
IMutableLogin CreateSqlLogin(
    IServer server,
    string name
)
IMutableLogin^ CreateSqlLogin(
    IServer^ server, 
    String^ name
)
abstract CreateSqlLogin : 
        server:IServer * 
        name:string -> IMutableLogin 
function CreateSqlLogin(
    server : IServer, 
    name : String
) : IMutableLogin

Parameters