MetadataSet Class

 

Represents a serializable collection of service metadata in XML form.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

System.Object
  System.ServiceModel.Description.MetadataSet

public class MetadataSet : IXmlSerializable

NameDescription
System_CAPS_pubmethodMetadataSet()

Initializes a new instance of the MetadataSet class.

System_CAPS_pubmethodMetadataSet(IEnumerable<MetadataSection>)

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

NameDescription
System_CAPS_pubpropertyAttributes

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

System_CAPS_pubpropertyMetadataSections

Gets a collection of MetadataSection objects that represents the metadata.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticReadFrom(XmlReader)

Returns a MetadataSet from the specified XmlReader object.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodWriteTo(XmlWriter)

Writes the MetadataSet to XML using the specified XmlWriter.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.GetSchema()

Implements GetSchema method to provide serialization support.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.ReadXml(XmlReader)

Implements the ReadXml method to support deserialization from XML.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.WriteXml(XmlWriter)

Implements the WriteXml method to support serialization to XML.

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.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: