SPUser.LoginName Property

Gets the user name of the user.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.MaxLength, Value := )> _
Public Overrides ReadOnly Property LoginName As String
    Get
'Usage
Dim instance As SPUser
Dim value As String

value = instance.LoginName
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.MaxLength, Value = )]
public override 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