語言

Saml2SecurityTokenHandler.CreateAttributeStatement 方法

定義

protected virtual Microsoft.IdentityModel.Tokens.Saml2.Saml2AttributeStatement CreateAttributeStatement(Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member CreateAttributeStatement : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.Saml2.Saml2AttributeStatement
override this.CreateAttributeStatement : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.Saml2.Saml2AttributeStatement
Protected Overridable Function CreateAttributeStatement (tokenDescriptor As SecurityTokenDescriptor) As Saml2AttributeStatement

參數

tokenDescriptor
SecurityTokenDescriptor

SecurityTokenDescriptor該 包含建構 的Saml2AttributeStatement資訊。

傳回

一個 Saml2AttributeStatement。

例外狀況

若 tokenDescriptor 為零。

備註

若標記描述符不包含任何主體或主體無任何權利要求,此方法可能會回傳 null。

適用於