System.ServiceModel 4.0.0.0 System.Object System.Xml.Serialization.XmlRoot("MetadataSection", Namespace="http://schemas.xmlsoap.org/ws/2004/09/mex")

The class conforms to the definition of the wsx:Metadata/wsx:MetadataSection element in the WS-Metadata Exchange specification and contains XML metadata or references to XML metadata.

A object contains one dialect of metadata in XML form (such as a Web Services Description Language or WSDL file). You can add a to a collection of XML metadata represented by a object. Much of the indigo1 metadata system, such as the class, use the class to import or export service metadata in XML form.

For example, to export indigo2 contract or endpoint objects to a object that contains the equivalent metadata in XML form, call the appropriate Export methods on the class, passing either or objects, and then call the method.

To import XML-based metadata from a object into indigo2 , , and objects, pass a object to the constructor of the class and call one of the import methods.

Represents XML metadata or references to XML metadata.

- Constructor
  4.0.0.0
  To be added.

  Initializes a new instance of the class with no dialect, identifier, or XML metadata.

- Constructor
  4.0.0.0
  To be added.
  To be added.
  To be added.

  Use the constructor to specify the metadata to be included in this , its dialect and its identifier. The metadata object must be serializable using the class so that the object can be serialized. If it is not serializable, an exception is thrown when the object is serialized. Use a or object for the parameter if you want to include a reference to the metadata instead of the metadata itself.

  Initializes a new instance of the class using the specified dialect, identifier, and XML metadata.

- Property
  4.0.0.0
  System.Xml.Serialization.XmlAnyAttribute
  System.Collections.ObjectModel.Collection<System.Xml.XmlAttribute> To be added.

  Use the property to add or remove attribute extensions.

  The dialect and identifier attributes are not included in this collection.

  Gets a collection of XML attributes that you can use to add or remove attributes extensions to the metadata.

- Method
  4.0.0.0
  System.ServiceModel.Description.MetadataSection `` To be added.

  Use this static factory method to quickly create a for a XML Schema document. The property is assigned the value of and the property is assigned the value of the target namespace of the XML Schema document.

  Creates a from the specified object.

  A containing the specified XML schema.

- Method
  4.0.0.0
  System.ServiceModel.Description.MetadataSection `` To be added.

  Use this static factory method to quickly create a for a WSDL document. The property is assigned the value of and the property is assigned the value of the target namespace of the WSDL document.

  Returns a that contains the specified .

  A that contains the specified .

- Property
  4.0.0.0
  System.Xml.Serialization.XmlAttribute
  System.String To be added.

  The dialect indicates the type of metadata in this . The dialect strings with supported object models are:

  Gets or sets a value that indicates the type of metadata.

- Property
  4.0.0.0
  System.Xml.Serialization.XmlAttribute
  System.String To be added.

  The identifier for the metadata in this . The value depends on the type of metadata.

  Gets or sets an identifier for the metadata.

- Property
  4.0.0.0
  System.Xml.Serialization.XmlAnyElement
  System.Xml.Serialization.XmlElement("Location", IsNullable=false, Namespace="http://schemas.xmlsoap.org/ws/2004/09/mex", Type=typeof(System.ServiceModel.Description.MetadataLocation))
  System.Xml.Serialization.XmlElement("Metadata", IsNullable=false, Namespace="http://schemas.xmlsoap.org/ws/2004/09/mex", Type=typeof(System.ServiceModel.Description.MetadataSet))
  System.Xml.Serialization.XmlElement("schema", IsNullable=false, Namespace="http://www.w3.org/2001/XMLSchema", Type=typeof(System.Xml.Schema.XmlSchema))
  System.Xml.Serialization.XmlElement("definitions", IsNullable=false, Namespace="http://schemas.xmlsoap.org/wsdl/", Type=typeof(System.Web.Services.Description.ServiceDescription))
  System.Xml.Serialization.XmlElement("MetadataReference", IsNullable=false, Namespace="http://schemas.xmlsoap.org/ws/2004/09/mex", Type=typeof(System.ServiceModel.Description.MetadataReference))
  System.Object To be added.

  Use the property to access or modify the metadata content contained in the . The metadata object can be or a as a reference to the metadata content. When a is deserialized, the type of the metadata object is determined from the XML content. The following table describes the possible return values.

  Type of XML metadata

  Returned type

  WSDL document

  XML Schema

  Metadata reference

  Metadata location

  Policy, and all other XML content

  Gets or sets the contained metadata object.

- Property
  4.0.0.0
  System.String To be added.

  The dialect for a WS-Metadata Exchange document.

  Contains the value of the metadata exchange dialect.

- Property
  4.0.0.0
  System.String To be added.

  The dialect for a WS-Policy policy expression.

  Contains the value of the WS-Policy dialect.

- Property
  4.0.0.0
  System.String To be added.

  The dialect.

  Contains the value of the Web Services Description Language (WSDL) dialect.

- Property
  4.0.0.0
  System.String To be added.

  The dialect for an XML Schema document.

  Contains the value of the XML Schema dialect.