MetadataSerializer.WriteMetadata Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.