Muokkaa

Jaa


MetadataSerializer.ReadMetadata Method

Definition

Reads an entity descriptor or an entities descriptor.

Overloads

ReadMetadata(Stream)

Reads the specified stream to deserialize an entity descriptor or an entities descriptor.

ReadMetadata(XmlReader)

Reads the specified XML reader to deserialize an entity descriptor or an entities descriptor.

ReadMetadata(XmlReader, SecurityTokenResolver)

Read the given XmlReader to deserialize an entity descriptor or an entities descriptor.

ReadMetadata(Stream)

Reads the specified stream to deserialize an entity descriptor or an entities descriptor.

public:
 System::IdentityModel::Metadata::MetadataBase ^ ReadMetadata(System::IO::Stream ^ stream);
public System.IdentityModel.Metadata.MetadataBase ReadMetadata (System.IO.Stream stream);
member this.ReadMetadata : System.IO.Stream -> System.IdentityModel.Metadata.MetadataBase
Public Function ReadMetadata (stream As Stream) As MetadataBase

Parameters

stream
Stream

The stream to read.

Returns

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

Exceptions

stream is null.

Applies to

ReadMetadata(XmlReader)

Reads the specified XML reader to deserialize an entity descriptor or an entities descriptor.

public:
 System::IdentityModel::Metadata::MetadataBase ^ ReadMetadata(System::Xml::XmlReader ^ reader);
public System.IdentityModel.Metadata.MetadataBase ReadMetadata (System.Xml.XmlReader reader);
member this.ReadMetadata : System.Xml.XmlReader -> System.IdentityModel.Metadata.MetadataBase
Public Function ReadMetadata (reader As XmlReader) As MetadataBase

Parameters

reader
XmlReader

The XML reader to be read.

Returns

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

Exceptions

reader is null.

Applies to

ReadMetadata(XmlReader, SecurityTokenResolver)

Read the given XmlReader to deserialize an entity descriptor or an entities descriptor.

public:
 System::IdentityModel::Metadata::MetadataBase ^ ReadMetadata(System::Xml::XmlReader ^ reader, System::IdentityModel::Selectors::SecurityTokenResolver ^ tokenResolver);
public System.IdentityModel.Metadata.MetadataBase ReadMetadata (System.Xml.XmlReader reader, System.IdentityModel.Selectors.SecurityTokenResolver tokenResolver);
member this.ReadMetadata : System.Xml.XmlReader * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Metadata.MetadataBase
Public Function ReadMetadata (reader As XmlReader, tokenResolver As SecurityTokenResolver) As MetadataBase

Parameters

reader
XmlReader

The XML reader to be read.

tokenResolver
SecurityTokenResolver

The token resolver to use to resolve the signature token.

Returns

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

Exceptions

reader is null.

-or-

tokenResolver is null.

Applies to