SamlSecurityTokenHandler.ReadSubject(XmlReader) 方法

定义

读取 <saml:Subject> 元素。Reads the <saml:Subject> element.

protected:
 virtual System::IdentityModel::Tokens::SamlSubject ^ ReadSubject(System::Xml::XmlReader ^ reader);
protected virtual System.IdentityModel.Tokens.SamlSubject ReadSubject (System.Xml.XmlReader reader);
abstract member ReadSubject : System.Xml.XmlReader -> System.IdentityModel.Tokens.SamlSubject
override this.ReadSubject : System.Xml.XmlReader -> System.IdentityModel.Tokens.SamlSubject
Protected Overridable Function ReadSubject (reader As XmlReader) As SamlSubject

参数

reader
XmlReader

在要读取的元素指定的 XmlReaderAn XmlReader positioned at the element to read.

返回

SamlSubject

表示读取的 Subject 元素的 SamlSubjectA SamlSubject that represents the Subject element that was read.

例外

readernullreader is null.

注解

默认实现不处理可选的 <EncryptedID> 元素。The default implementation does not handle the optional <EncryptedID> element. 若要处理使用者中的加密 Id,请重写此方法。To handle encrypted IDs in the Subject, override this method.

适用于