共用方式為


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

權杖描述元。

例外狀況

subjectnull

-或-

tokenDescriptornull

適用於