Gets the user name of the user.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public ReadOnly Property LoginName As String
Dim instance As SPUser
Dim value As String
value = instance.LoginName
public string LoginName { get; }
Property Value
A string that contains the user name.