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
- database
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabase
The IDatabase object that is the parent of the user.
- name
Type: System.String
The name of the user to create.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableUser
An IMutableUser object.
See Also
Reference
Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace