Прочетете на английски Редактиране

Споделяне чрез


SamlSecurityTokenHandler.ReadAdvice(XmlReader) Method

Definition

Reads the <saml:Advice> element.

C#
protected virtual System.IdentityModel.Tokens.SamlAdvice ReadAdvice(System.Xml.XmlReader reader);

Parameters

reader
XmlReader

An XmlReader positioned at the element to read.

Returns

A SamlAdvice that represents the Advice element that is read.

Exceptions

reader is null.

Remarks

The Advice element has an extensibility point to allow XML elements from non-SAML 1.1 namespaces to be included. By default, because the Advice may be ignored without affecting the semantics of the assertion, any such elements are ignored. To handle the processing of those elements, override this method.

Applies to

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1