Share via


IUserFactory.CreateNoLoginUser Method

Creates an IMutableUser object that belongs to the specified IDatabase object and has the specified name. The UserType property of the created object is set to NoLogin.

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

Syntax

'Declaration
Function CreateNoLoginUser ( _
    database As IDatabase, _
    name As String _
) As IMutableUser
'Usage
Dim instance As IUserFactory 
Dim database As IDatabase 
Dim name As String 
Dim returnValue As IMutableUser 

returnValue = instance.CreateNoLoginUser(database, _
    name)
IMutableUser CreateNoLoginUser(
    IDatabase database,
    string name
)
IMutableUser^ CreateNoLoginUser(
    IDatabase^ database, 
    String^ name
)
abstract CreateNoLoginUser : 
        database:IDatabase * 
        name:string -> IMutableUser
function CreateNoLoginUser(
    database : IDatabase, 
    name : String
) : IMutableUser

Parameters

Return Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableUser
An IMutableUser object.

See Also

Reference

IUserFactory Interface

Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace