Επεξεργασία

Κοινή χρήση μέσω


MetadataSet Class

Definition

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
Inheritance
MetadataSet
Implements

Remarks

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.

Constructors

MetadataSet()

Initializes a new instance of the MetadataSet class.

MetadataSet(IEnumerable<MetadataSection>)

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

Properties

Attributes

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

MetadataSections

Gets a collection of MetadataSection objects that represents the metadata.

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ReadFrom(XmlReader)

Returns a MetadataSet from the specified XmlReader object.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
WriteTo(XmlWriter)

Writes the MetadataSet to XML using the specified XmlWriter.

Explicit Interface Implementations

IXmlSerializable.GetSchema()

Implements GetSchema() method to provide serialization support.

IXmlSerializable.ReadXml(XmlReader)

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

IXmlSerializable.WriteXml(XmlWriter)

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

Applies to