CookieValidatePrincipalContext.ReplacePrincipal(ClaimsPrincipal) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called to replace the claims principal. The supplied principal will replace the value of the Principal property, which determines the identity of the authenticated request.
public:
void ReplacePrincipal(System::Security::Claims::ClaimsPrincipal ^ principal);
public void ReplacePrincipal (System.Security.Claims.ClaimsPrincipal principal);
member this.ReplacePrincipal : System.Security.Claims.ClaimsPrincipal -> unit
Public Sub ReplacePrincipal (principal As ClaimsPrincipal)
Parameters
- principal
- ClaimsPrincipal
The ClaimsPrincipal used as the replacement
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for