SamlSerializer.LoadAdvice Method

Reads the additional information provided by the SAML authority within a <saml:Advice> element of a SAML assertion using the specified XML reader.

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public virtual SamlAdvice LoadAdvice(
	XmlDictionaryReader reader,
	SecurityTokenSerializer keyInfoSerializer,
	SecurityTokenResolver outOfBandTokenResolver


Type: System.Xml.XmlDictionaryReader

An XmlDictionaryReader to read the additional information provided by the SAML authority.

Type: System.IdentityModel.Selectors.SecurityTokenSerializer

A SecurityTokenSerializer that reads the KeyInfo clause of the digital signature.

Type: System.IdentityModel.Selectors.SecurityTokenResolver

A SecurityTokenResolver that determines the security token that created the digital signature.

Return Value

Type: System.IdentityModel.Tokens.SamlAdvice
A SamlAdvice that contains additional information provided by the SAML authority within a <saml:Advice> element of a SAML assertion.


reader is null

The <saml:Advice> element within a SAML assertion is an extension point for SAML tokens. To create a serializer that can read the custom attributes, derive a class from SamlSerializer and override the LoadAdvice(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) method.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft