共用方式為


SamlAttributeStatement.ReadXml 方法

定義

從指定的 XML 讀取器讀取 SAML 屬性陳述式。

public:
 override void ReadXml(System::Xml::XmlDictionaryReader ^ reader, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ outOfBandTokenResolver);
public override void ReadXml (System.Xml.XmlDictionaryReader reader, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer, System.IdentityModel.Selectors.SecurityTokenResolver outOfBandTokenResolver);
override this.ReadXml : System.Xml.XmlDictionaryReader * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> unit
Public Overrides Sub ReadXml (reader As XmlDictionaryReader, samlSerializer As SamlSerializer, keyInfoSerializer As SecurityTokenSerializer, outOfBandTokenResolver As SecurityTokenResolver)

參數

reader
XmlDictionaryReader

要讀取 SAML 屬性陳述式的 XmlDictionaryReader

samlSerializer
SamlSerializer

SamlSerializer,它能夠從 SAML 屬性陳述式讀取 SAML 規格中所定義的 XML 項目。

keyInfoSerializer
SecurityTokenSerializer

SecurityTokenSerializer,它會讀取數位簽章的 KeyInfo 子句。

outOfBandTokenResolver
SecurityTokenResolver

SecurityTokenResolver,它會判定建立數位簽章的安全性權杖。

例外狀況

readernull

-或-

samlSerializernull

reader 會參考不包含 <saml:Subject> 項目的 XML 項目。

-或-

reader 會參考所包含之 <saml:Attribute> 項目沒有屬性值的 XML 項目。

備註

ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver) 方法會設定 Attributes 以及 SamlSubject 屬性。

適用於