Edit

Share via


MetadataSerializer.ReadMetadataCore(XmlReader, SecurityTokenResolver) Method

Definition

Reads an entity descriptor or an entities descriptor.

protected:
 virtual System::IdentityModel::Metadata::MetadataBase ^ ReadMetadataCore(System::Xml::XmlReader ^ reader, System::IdentityModel::Selectors::SecurityTokenResolver ^ tokenResolver);
protected virtual System.IdentityModel.Metadata.MetadataBase ReadMetadataCore (System.Xml.XmlReader reader, System.IdentityModel.Selectors.SecurityTokenResolver tokenResolver);
abstract member ReadMetadataCore : System.Xml.XmlReader * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Metadata.MetadataBase
override this.ReadMetadataCore : System.Xml.XmlReader * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Metadata.MetadataBase
Protected Overridable Function ReadMetadataCore (reader As XmlReader, tokenResolver As SecurityTokenResolver) As MetadataBase

Parameters

reader
XmlReader

The XML reader.

tokenResolver
SecurityTokenResolver

The security token resolver.

Returns

The descriptor. An instance of the EntityDescriptor or EntitiesDescriptor class.

Exceptions

reader is null.

-or-

tokenResolver is null.

The reader is not positioned on an <EntityDescriptor> or an <EntitiesDescriptor> element.

Remarks

This method is called by the ReadMetadata methods.

Applies to