Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Server Technologies
SDK Documentation
SPUser Class
SPUser Properties
 LoginName Property
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.
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker