Udostępnij za pośrednictwem


Saml2SecurityTokenHandler.AddDelegateToAttributes Metoda

Definicja

Dodaje wszystkich delegatów skojarzonych z tematem do kolekcji atrybutów.

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)

Parametry

subject
ClaimsIdentity

Delegat tego ClaimsIdentity obiektu zostanie zserializowany do obiektu Saml2Attribute.

attributes
ICollection<Saml2Attribute>

Kolekcja typu Saml2Attribute.

tokenDescriptor
SecurityTokenDescriptor

Deskryptor tokenu.

Wyjątki

subject to null.

-lub-

tokenDescriptor to null.

Dotyczy