Share via


SPUser.ID Property

Gets the member ID for the user.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute(Name := "Id")> _
Public Overrides ReadOnly Property ID As Integer
    Get
'Usage
Dim instance As SPUser
Dim value As Integer

value = instance.ID
[ClientCallableAttribute(Name = "Id")]
public override int ID { get; }

Property Value

Type: System.Int32
A 32-bit integer that specifies the member ID.

Remarks

The value of the ID property corresponds to the unique member ID for the user, which is contained in the ID property of the SPMember class.

See Also

Reference

SPUser Class

SPUser Members

Microsoft.SharePoint Namespace