The `ClaimsPrincipal.GetSubjectId` method in C# returns the subject identifier of the claims principal. The subject identifier represents a unique identifier for the authenticated entity associated with the claims principal. This method can be used to retrieve the unique identifier for the current user or entity in an application.
C# (CSharp) System.Security.Claims ClaimsPrincipal.GetSubjectId - 19 examples found. These are the top rated real world C# (CSharp) examples of System.Security.Claims.ClaimsPrincipal.GetSubjectId extracted from open source projects. You can rate examples to help us improve the quality of examples.