ClaimsPrincipalExtensions.GetNameIdentifierId(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.
Gets the NameIdentifierId associated with the ClaimsPrincipal.
public static string? GetNameIdentifierId (this System.Security.Claims.ClaimsPrincipal claimsPrincipal);
static member GetNameIdentifierId : System.Security.Claims.ClaimsPrincipal -> string
<Extension()>
Public Function GetNameIdentifierId (claimsPrincipal As ClaimsPrincipal) As String
Parameters
- claimsPrincipal
- ClaimsPrincipal
The ClaimsPrincipal from which to retrieve the NameIdentifierId
claim.
Returns
Name identifier ID of the identity, or null
if it cannot be found.
Applies to
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示