MetadataSet Class
Represents a serializable collection of service metadata in XML form.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Name | Description | |
|---|---|---|
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | Attributes | Gets a collection of System.Xml::XmlAttribute objects that appear in the serialized form of the MetadataSet. |
![]() | MetadataSections | Gets a collection of MetadataSection objects that represents the metadata. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() ![]() | 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. |
| Name | Description | |
|---|---|---|
![]() ![]() | IXmlSerializable::GetSchema() | Implements GetSchema method to provide serialization support. |
![]() ![]() | IXmlSerializable::ReadXml(XmlReader^) | Implements the ReadXml method to support deserialization from XML. |
![]() ![]() | IXmlSerializable::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.
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.





