MetadataSet Classe
Definição
Representa uma coleção serializável de metadados de serviço no formato XML.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
- Herança
-
MetadataSet
- Implementações
Comentários
A MetadataSet classe contém uma coleção de MetadataSection objetos, cada um contendo um dialeto de metadados em formato XML.The MetadataSet class contains a collection of MetadataSection objects, each of which contains one dialect of metadata in XML form. Normalmente, a MetadataSet classe é usada para passar um grupo de documentos de metadados XML de e para MetadataExporter objetos do e do, como MetadataImporter WsdlImporter e WsdlExporter .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.
Para criar um MetadataSet de um IEnumerable<T> objeto do tipo MetadataSection , use o MetadataSet Construtor.To create a MetadataSet from a IEnumerable<T> object of type MetadataSection, use the MetadataSet constructor. Para obter um IEnumerable<T> objeto do tipo MetadataSection , use a MetadataSections propriedade.To obtain a IEnumerable<T> object of type MetadataSection, use the MetadataSections property.
Além disso, você pode usar o ReadFrom método para carregar um MetadataSet dos dados XML e o WriteTo método para gravar os metadados internos em um formato XML.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.
Esse tipo implementa a estrutura definida na especificação de WS-MetadataExchange.This type implements the structure defined in the WS-MetadataExchange specification.
Construtores
| MetadataSet() |
Inicializa uma nova instância da classe MetadataSet.Initializes a new instance of the MetadataSet class. |
| MetadataSet(IEnumerable<MetadataSection>) |
Inicializa uma nova instância da classe MetadataSet que contém a coleção especificada de objetos MetadataSection.Initializes a new instance of the MetadataSet class that contains the specified collection of MetadataSection objects. |
Propriedades
| Attributes |
Obtém uma coleção de objetos XmlAttribute que aparecem no formato serializado do MetadataSet.Gets a collection of XmlAttribute objects that appear in the serialized form of the MetadataSet. |
| MetadataSections |
Obtém uma coleção de objetos MetadataSection que representam os metadados.Gets a collection of MetadataSection objects that represents the metadata. |
Métodos
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ReadFrom(XmlReader) |
Retorna um MetadataSet do objeto XmlReader especificado.Returns a MetadataSet from the specified XmlReader object. |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |
| WriteTo(XmlWriter) |
Grava o MetadataSet em XML usando o XmlWriter especificado.Writes the MetadataSet to XML using the specified XmlWriter. |
Implantações explícitas de interface
| IXmlSerializable.GetSchema() |
Implementa método GetSchema() para oferecer suporte para serialização.Implements GetSchema() method to provide serialization support. |
| IXmlSerializable.ReadXml(XmlReader) |
Implementa o método ReadXml(XmlReader) para dar suporte à desserialização de XML.Implements the ReadXml(XmlReader) method to support deserialization from XML. |
| IXmlSerializable.WriteXml(XmlWriter) |
Implementa o método WriteXml(XmlWriter) para dar suporte à serialização para XML.Implements the WriteXml(XmlWriter) method to support serialization to XML. |