Rediger

Del via


MetadataSerializer.WriteMetadata Method

Definition

Writes federation metadata.

Overloads

WriteMetadata(Stream, MetadataBase)

Writes the federation metadata to the specified stream.

WriteMetadata(XmlWriter, MetadataBase)

Writes the federation metadata to the specified XML writer.

WriteMetadata(Stream, MetadataBase)

Writes the federation metadata to the specified stream.

public:
 void WriteMetadata(System::IO::Stream ^ stream, System::IdentityModel::Metadata::MetadataBase ^ metadata);
public void WriteMetadata (System.IO.Stream stream, System.IdentityModel.Metadata.MetadataBase metadata);
member this.WriteMetadata : System.IO.Stream * System.IdentityModel.Metadata.MetadataBase -> unit
Public Sub WriteMetadata (stream As Stream, metadata As MetadataBase)

Parameters

stream
Stream

The stream to which to write the federation metadata.

metadata
MetadataBase

The metadata to write.

Exceptions

stream is null.

-or-

metadata is null.

Applies to

WriteMetadata(XmlWriter, MetadataBase)

Writes the federation metadata to the specified XML writer.

public:
 void WriteMetadata(System::Xml::XmlWriter ^ writer, System::IdentityModel::Metadata::MetadataBase ^ metadata);
public void WriteMetadata (System.Xml.XmlWriter writer, System.IdentityModel.Metadata.MetadataBase metadata);
member this.WriteMetadata : System.Xml.XmlWriter * System.IdentityModel.Metadata.MetadataBase -> unit
Public Sub WriteMetadata (writer As XmlWriter, metadata As MetadataBase)

Parameters

writer
XmlWriter

The XML writer to which to write the federation Metadata.

metadata
MetadataBase

The metadata to write.

Exceptions

writer is null.

-or-

metadata is null.

Applies to