SamlSecurityTokenHandler.CreateAttribute(Claim) 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.
Generates a SamlAttribute from a claim.
protected virtual Microsoft.IdentityModel.Tokens.Saml.SamlAttribute CreateAttribute (System.Security.Claims.Claim claim);
abstract member CreateAttribute : System.Security.Claims.Claim -> Microsoft.IdentityModel.Tokens.Saml.SamlAttribute
override this.CreateAttribute : System.Security.Claims.Claim -> Microsoft.IdentityModel.Tokens.Saml.SamlAttribute
Protected Overridable Function CreateAttribute (claim As Claim) As SamlAttribute
Parameters
- claim
- Claim
Claim from which to generate a SamlAttribute.
Returns
Exceptions
if the claim
is null.
if the type of claim
doesn't have "/" or only has "/" at the beginning or doesn't have any character(s) after the last "/".
Applies to
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour