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
参数
返回
表示读取的 Subject 元素的 SamlSubject。A SamlSubject that represents the Subject element that was read.
例外
reader 为 null。reader is null.
注解
默认实现不处理可选的 <EncryptedID> 元素。The default implementation does not handle the optional <EncryptedID> element. 若要处理使用者中的加密 Id,请重写此方法。To handle encrypted IDs in the Subject, override this method.