SamlAuthorizationDecisionStatement.WriteXml 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 SAML 授權陳述式寫入至指定的 XML 序列化程式。
public:
override void WriteXml(System::Xml::XmlDictionaryWriter ^ writer, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer);
public override void WriteXml (System.Xml.XmlDictionaryWriter writer, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer);
override this.WriteXml : System.Xml.XmlDictionaryWriter * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer -> unit
Public Overrides Sub WriteXml (writer As XmlDictionaryWriter, samlSerializer As SamlSerializer, keyInfoSerializer As SecurityTokenSerializer)
參數
- writer
- XmlDictionaryWriter
要寫入 SAML 授權陳述式的 XmlDictionaryWriter。
- samlSerializer
- SamlSerializer
SamlSerializer,它能夠將 XML 元素寫入至 SAML 判斷提示。
- keyInfoSerializer
- SecurityTokenSerializer
SecurityTokenSerializer,它可以寫入 KeyInfo
子句。
例外狀況
備註
使用 WriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer) 方法,即可將 SamlAuthorizationDecisionStatement 的目前執行個體寫入至 <AuthorizationDecisionStatement>
項目中。