Share via


UserInfo.UserID property

Gets the globally unique identifier (GUID) for the current user.

Namespace:  Microsoft.Office.Server.Audience
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public ReadOnly Property UserID As Guid
    Get
'Usage
Dim instance As UserInfo
Dim value As Guid

value = instance.UserID
public Guid UserID { get; }

Property value

Type: System.Guid
System.Guid object that represents the GUID for the current user.

Remarks

The UserID property is read-only.

See also

Reference

UserInfo class

UserInfo members

Microsoft.Office.Server.Audience namespace