Share via


SPUserIdInfo.NameId property

Gets the user's name from the perspective of the authentication provider.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property NameId As String
    Get
'Usage
Dim instance As SPUserIdInfo
Dim value As String

value = instance.NameId
public string NameId { get; }

Property value

Type: System.String
The user’s name.

Remarks

For example, it is PUID for Office 365 Org-Id authentication and it is SID for Windows authentication.

See also

Reference

SPUserIdInfo class

SPUserIdInfo members

Microsoft.SharePoint namespace