Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
SPUser Class
SPUser Properties
 LoginName Property
Community Content
In this section
Statistics Annotations (1)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
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 | Site Feedback
Page view tracker