MetadataSet MetadataSet MetadataSet MetadataSet Class


Represents a serializable collection of service metadata in XML form.

public ref class MetadataSet : System::Xml::Serialization::IXmlSerializable
public class MetadataSet : System.Xml.Serialization.IXmlSerializable
type MetadataSet = class
    interface IXmlSerializable
Public Class MetadataSet
Implements IXmlSerializable


The MetadataSet class contains a collection of MetadataSection objects, each of which contains one dialect of metadata in XML form. Typically, the MetadataSet class is used to pass a group of XML metadata documents to and from MetadataExporter and MetadataImporter objects, such as WsdlImporter and WsdlExporter.

To create a MetadataSet from a IEnumerable<T> object of type MetadataSection, use the MetadataSet constructor. To obtain a IEnumerable<T> object of type MetadataSection, use the MetadataSections property.

In addition, you can use the ReadFrom method to load a MetadataSet from XML data and the WriteTo method to write the internal metadata to an XML format.

This type implements the structure defined in the WS-MetadataExchange specification.


MetadataSet() MetadataSet() MetadataSet() MetadataSet()

Initializes a new instance of the MetadataSet class.

MetadataSet(IEnumerable<MetadataSection>) MetadataSet(IEnumerable<MetadataSection>) MetadataSet(IEnumerable<MetadataSection>) MetadataSet(IEnumerable<MetadataSection>)

Initializes a new instance of the MetadataSet class that contains the specified collection of MetadataSection objects.


Attributes Attributes Attributes Attributes

Gets a collection of XmlAttribute objects that appear in the serialized form of the MetadataSet.

MetadataSections MetadataSections MetadataSections MetadataSections

Gets a collection of MetadataSection objects that represents the metadata.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ReadFrom(XmlReader) ReadFrom(XmlReader) ReadFrom(XmlReader) ReadFrom(XmlReader)

Returns a MetadataSet from the specified XmlReader object.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
WriteTo(XmlWriter) WriteTo(XmlWriter) WriteTo(XmlWriter) WriteTo(XmlWriter)

Writes the MetadataSet to XML using the specified XmlWriter.

Explicit Interface Implementations

IXmlSerializable.GetSchema() IXmlSerializable.GetSchema() IXmlSerializable.GetSchema() IXmlSerializable.GetSchema()

Implements GetSchema() method to provide serialization support.

IXmlSerializable.ReadXml(XmlReader) IXmlSerializable.ReadXml(XmlReader) IXmlSerializable.ReadXml(XmlReader) IXmlSerializable.ReadXml(XmlReader)

Implements the ReadXml(XmlReader) method to support deserialization from XML.

IXmlSerializable.WriteXml(XmlWriter) IXmlSerializable.WriteXml(XmlWriter) IXmlSerializable.WriteXml(XmlWriter) IXmlSerializable.WriteXml(XmlWriter)

Implements the WriteXml(XmlWriter) method to support serialization to XML.

Applies to