Share via


Saml2Serializer.ReadNameIdentifier(XmlDictionaryReader, String) Method

Definition

Deserializes the SAML SubjectId.

protected virtual Microsoft.IdentityModel.Tokens.Saml2.Saml2NameIdentifier ReadNameIdentifier (System.Xml.XmlDictionaryReader reader, string parentElement);
abstract member ReadNameIdentifier : System.Xml.XmlDictionaryReader * string -> Microsoft.IdentityModel.Tokens.Saml2.Saml2NameIdentifier
override this.ReadNameIdentifier : System.Xml.XmlDictionaryReader * string -> Microsoft.IdentityModel.Tokens.Saml2.Saml2NameIdentifier
Protected Overridable Function ReadNameIdentifier (reader As XmlDictionaryReader, parentElement As String) As Saml2NameIdentifier

Parameters

reader
XmlDictionaryReader

XmlReader positioned at "NameID, EncryptedID, BaseID".

parentElement
String

the element name of the parent element. Used in exception string.

Returns

A Saml2NameIdentifier instance.

Exceptions

if reader is pointing at an unknown Element.

Applies to