<TypeSignatureLanguage="C#"Value="public sealed class SchemaReference : System.Web.Services.Discovery.DiscoveryReference"Maintainer="auto"/>
<AssemblyInfo>
<AssemblyName>System.Web.Services</AssemblyName>
<AssemblyPublicKey>
</AssemblyPublicKey>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
<para>XML Web services discovery involves discovering the available XML Web services given, a URL. A The URL typically points to a discovery document, which usually has a.disco file name extension. The discovery document contains references to information about the existence of XML Web services. These references can refer to service descriptions, XSD schemas, or other discovery documents. This class represents a reference to an XSD schema.</para>
<para>Within a discovery document, a reference to an XSD schema is contained within a schemaRef XML element. The schemaRef XML element has an XML namespace and a ref attribute. The value of the XML namespace must match the <seecref="F:System.Web.Services.Discovery.SchemaReference.Namespace"/> constant. The value of the ref attribute is placed in the <seecref="P:System.Web.Services.Discovery.SchemaReference.Ref"/> property.</para>
<para>Initializes a new instance of the <seecref="T:System.Web.Services.Discovery.SchemaReference"/> class using the supplied URL as the XSD schema reference.</para>
<para>Within a discovery document, a reference to an XSD schema is contained within a schemaRef XML element, which is a part of the XML namespace specified in the <seecref="F:System.Web.Services.Discovery.SchemaReference.Namespace"/> constant.</para>
<para>In a discovery document, a reference to an XSD schema is contained within a schemaRef XML element. The schemaRef XML element has a ref attribute, which is the URL for the referenced XSD schema. The <seecref="P:System.Web.Services.Discovery.ContractReference.Ref"/> property represents the value of the ref attribute.</para>
<para>If the MIME type is text/xml and the contents of <paramrefname="stream"/> are an XSD schema, then the contents of <paramrefname="stream"/> are added to the <seecref="P:System.Web.Services.Discovery.DiscoveryClientProtocol.References"/> and <seecref="P:System.Web.Services.Discovery.DiscoveryClientProtocol.Documents"/> properties of <seecref="P:System.Web.Services.Discovery.DiscoveryReference.ClientProtocol"/>.</para>
<para>If the XSD schema has not been downloaded and added to the <seecref="P:System.Web.Services.Discovery.DiscoveryClientProtocol.Documents"/> property of <seecref="P:System.Web.Services.Discovery.DiscoveryReference.ClientProtocol"/>, an attempt to download and resolve the document is made.</para>
<para>For the <seecref="T:System.Web.Services.Discovery.SchemaReference"/> class, the <seecref="P:System.Web.Services.Discovery.SchemaReference.Url"/> property returns the value of the <seecref="P:System.Web.Services.Discovery.SchemaReference.Ref"/> property.</para>
<para>Writes the passed XSD schema into the passed <seecref="T:System.IO.Stream"/>.</para>
</summary>
<paramname="document">
<attributionlicense="cc4"from="Microsoft"modified="false"/>The <seecref="T:System.Xml.Schema.XmlSchema"/> to write into <paramrefname="stream"/>. </param>
<paramname="stream">
<attributionlicense="cc4"from="Microsoft"modified="false"/>The <seecref="T:System.IO.Stream"/> into which the serialized XSD schema is written. </param>