共用方式為


SamlSecurityTokenHandler.AddDelegateToAttributes 方法

定義

將與 ActAs 主題關聯的所有委派加入至屬性集合中。

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

參數

subject
ClaimsIdentity

這個 ClaimsIdentity 物件的委派將序列化為 SamlAttribute。 委派是由Actor 屬性所指定。

attributes
ICollection<SamlAttribute>

將序列化 ActAs 語彙基元的屬性集合。

tokenDescriptor
SecurityTokenDescriptor

權杖描述元。

例外狀況

subjectnull

-或-

tokenDescriptornull

適用於