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


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

value = instance.LoginName
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.MaxLength, Value = )]
public override string LoginName { get; }

Property Value

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

See Also


SPUser Class

SPUser Members

Microsoft.SharePoint Namespace