Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
SPUser Class
SPUser Properties
 LoginName Property

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
SPUser.LoginName Property (Microsoft.SharePoint)
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
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.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Documentation      anonymous coward   |   Edit   |   Show History
When applicable, LoginName includes the domain, like "domain\user". Some entities will have a SharePoint domain, like SharePoint\system (any others?).
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker