SPUser.LoginName Property (Microsoft.SharePoint)
Gets the user name of the user.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
Public ReadOnly Property LoginName As String
Visual Basic (Usage)
Dim instance As SPUser
Dim value As String

value = instance.LoginName
C#
public string LoginName { get; }

Property Value

A string that contains the user name.
See Also

Tags :


Community Content

anonymous coward
Documentation
When applicable, LoginName includes the domain, like "domain\user". Some entities will have a SharePoint domain, like SharePoint\system (any others?).

Page view tracker