Share via


SPUser.LoginName Property

Gets the user name of the user.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

Public ReadOnly Property LoginName As String
    Get

Dim instance As SPUser
Dim value As String

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

Property Value

Type: System.String
A string that contains the user name.

See Also

Reference

SPUser Class

SPUser Members

Microsoft.SharePoint Namespace