Saml2SecurityTokenHandler.AddDelegateToAttributes Methode

Definition

Fügt alle Stellvertretungen, die dem Betreff zugeordnet sind, der Attributauflistung hinzu.

protected:
 virtual void AddDelegateToAttributes(System::Security::Claims::ClaimsIdentity ^ subject, System::Collections::Generic::ICollection<System::IdentityModel::Tokens::Saml2Attribute ^> ^ attributes, System::IdentityModel::Tokens::SecurityTokenDescriptor ^ tokenDescriptor);
protected virtual void AddDelegateToAttributes(System.Security.Claims.ClaimsIdentity subject, System.Collections.Generic.ICollection<System.IdentityModel.Tokens.Saml2Attribute> attributes, System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member AddDelegateToAttributes : System.Security.Claims.ClaimsIdentity * System.Collections.Generic.ICollection<System.IdentityModel.Tokens.Saml2Attribute> * System.IdentityModel.Tokens.SecurityTokenDescriptor -> unit
override this.AddDelegateToAttributes : System.Security.Claims.ClaimsIdentity * System.Collections.Generic.ICollection<System.IdentityModel.Tokens.Saml2Attribute> * System.IdentityModel.Tokens.SecurityTokenDescriptor -> unit
Protected Overridable Sub AddDelegateToAttributes (subject As ClaimsIdentity, attributes As ICollection(Of Saml2Attribute), tokenDescriptor As SecurityTokenDescriptor)

Parameter

subject
ClaimsIdentity

Der Delegat dieses ClaimsIdentity Objekts wird in eine Saml2AttributeSerialisierung umgewandelt.

attributes
ICollection<Saml2Attribute>

Eine Sammlung vom Typ Saml2Attribute.

tokenDescriptor
SecurityTokenDescriptor

Der Tokendeskriptor.

Ausnahmen

subject ist null.

-oder-

tokenDescriptor ist null.

Gilt für: