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
- server
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IServer
The IServer object that is the parent of the login object.
- name
Type: System.String
The name of the login object.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableLogin
An IMutableLogin object.