ILoginFactory.CreateWindowsLogin Method
Creates an IMutableLogin object using the specified IServer object and name. The LoginType property of the created object is set to Windows.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Function CreateWindowsLogin ( _
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.CreateWindowsLogin(server, _
name)
IMutableLogin CreateWindowsLogin(
IServer server,
string name
)
IMutableLogin^ CreateWindowsLogin(
IServer^ server,
String^ name
)
abstract CreateWindowsLogin :
server:IServer *
name:string -> IMutableLogin
function CreateWindowsLogin(
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.
See Also
Reference
Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace