语言

Saml2SecurityTokenHandler.AddDelegateToAttributes 方法

定义

将与主题关联的所有委托添加到属性集合中。

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)

参数

subject
ClaimsIdentity

此 ClaimsIdentity 对象的委托将序列化为一个 Saml2Attribute。

attributes
ICollection<Saml2Attribute>

类型的 Saml2Attribute集合。

tokenDescriptor
SecurityTokenDescriptor

标记描述符。

例外

subject 是 null。

-或-

tokenDescriptor 是 null。

适用于