<TypeSignatureLanguage="C#"Value="public class ContractReference : 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 Web Services given an URL. The URL usually points to a discovery document, which typically has a.disco file name extension. Within a discovery document are references to information about the existence of XML Web services. These references can refer to service descriptions, XML Schema Definition language (XSD) schemas or other discovery documents. This class represents a reference to a Service Description.</para>
<para>Within a discovery document, a reference to a Service Description is contained within a contractRef XML element. The contractRef XML element has two attributes: ref and docRef. The contractRef element must have an XML namespace matching the <seecref="F:System.Web.Services.Discovery.ContractReference.Namespace"/> constant, whereas the ref and docRef attributes are placed in the <seecref="P:System.Web.Services.Discovery.ContractReference.Ref"/> and <seecref="P:System.Web.Services.Discovery.ContractReference.DocRef"/> properties.</para>
<para>Use this constructor to create and initialize a new instance of the <seecref="T:System.Web.Services.Discovery.ContractReference"/> class using default values.</para>
<para>Use this constructor to create and initialize a new instance of the <seecref="T:System.Web.Services.Discovery.ContractReference"/> class using the specified reference name.</para>
<para>The following table shows initial property values for an instance of <seecref="T:System.Web.Services.Discovery.ContractReference"/>.</para>
<listtype="table">
<listheader>
<item>
<term>
<para>Property </para>
</term>
<description>
<para>Initial Value </para>
</description>
</item>
</listheader>
<item>
<term>
<para>Ref </para>
</term>
<description>
<para>The <paramrefname="href"/> parameter that represents the reference name. </para>
<para>Initializes a new instance of the <seecref="T:System.Web.Services.Discovery.ContractReference"/> class using the supplied reference to a Service Description.</para>
</summary>
<paramname="href">
<attributionlicense="cc4"from="Microsoft"modified="false"/>The URL for a Sevice Descritpion. Initializes the <seecref="P:System.Web.Services.Discovery.ContractReference.Ref"/> property value. </param>
<para>Use this constructor to create and initialize a new instance of the <seecref="T:System.Web.Services.Discovery.ContractReference"/> class using the specified reference name and docRef.</para>
<para>The following table shows initial property values for an instance of <seecref="T:System.Web.Services.Discovery.ContractReference"/>.</para>
<listtype="table">
<listheader>
<item>
<term>
<para>Property </para>
</term>
<description>
<para>Initial Value </para>
</description>
</item>
</listheader>
<item>
<term>
<para>Ref </para>
</term>
<description>
<para>The <paramrefname="href"/> parameter that represents the reference name. </para>
</description>
</item>
<item>
<term>
<para>DocRef </para>
</term>
<description>
<para>The <paramrefname="docRef"/> parameter that represents the DocRef. </para>
<para>Initializes a new instance of the <seecref="T:System.Web.Services.Discovery.ContractReference"/> class using the supplied references to a service description and a XML Web service implementing the service description.</para>
</summary>
<paramname="href">
<attributionlicense="cc4"from="Microsoft"modified="false"/>The URL for a service description. Initializes the <seecref="P:System.Web.Services.Discovery.ContractReference.Ref"/> property value. </param>
<paramname="docRef">
<attributionlicense="cc4"from="Microsoft"modified="false"/>The URL for a XML Web service implementing the service description at <paramrefname="href"/>. Initializes the <seecref="P:System.Web.Services.Discovery.ContractReference.DocRef"/> property value. </param>
<para>Within a discovery document, a reference to a Service Description is contained within a contractRef XML element. The contractRef XML element has two attributes described in the following table.</para>
<listtype="table">
<listheader>
<item>
<term>
<para>Attribute </para>
</term>
<description>
<para>Description </para>
</description>
</item>
</listheader>
<item>
<term>
<para>ref </para>
</term>
<description>
<para>The URL for the service description. The <seecref="P:System.Web.Services.Discovery.ContractReference.Ref"/> property represents the value of the ref attribute. </para>
</description>
</item>
<item>
<term>
<para>docRef </para>
</term>
<description>
<para>The URL for a XML Web service implementing the service description specified by the ref attribute. The <seecref="P:System.Web.Services.Discovery.ContractReference.DocRef"/> property represents the value of the docRef attribute. </para>
<para>Gets and sets the URL for a XML Web service implementing the service description referenced in the <seecref="P:System.Web.Services.Discovery.ContractReference.Ref"/> property.</para>
<para>Within a discovery document, a reference to a Service Description is contained within a contractRef XML element, which is a part of the XML namespace specified in the <seecref="F:System.Web.Services.Discovery.ContractReference.Namespace"/> constant.</para>
<para>Within a discovery document, a reference to a service description is contained within a contractRef XML element. The contractRef XML element has two attributes described in the following table.</para>
<listtype="table">
<listheader>
<item>
<term>
<para>Attribute </para>
</term>
<description>
<para>Description </para>
</description>
</item>
</listheader>
<item>
<term>
<para>ref </para>
</term>
<description>
<para>The URL for the service description.The <seecref="P:System.Web.Services.Discovery.ContractReference.Ref"/> property represents the value of the ref attribute. </para>
</description>
</item>
<item>
<term>
<para>docRef </para>
</term>
<description>
<para>The URL for a XML Web service implementing the service description specified by the ref attribute. The <seecref="P:System.Web.Services.Discovery.ContractReference.DocRef"/> property represents the value of the docRef attribute. </para>
<para>If the MIME type is text/xml and the contents of <paramrefname="stream"/> is a Service Description, 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>For the <seecref="T:System.Web.Services.Discovery.ContractReference"/> class, the <seecref="P:System.Web.Services.Discovery.ContractReference.Url"/> property returns the value of the <seecref="P:System.Web.Services.Discovery.ContractReference.Ref"/> property.</para>
<para>Writes the passed-in service description into the passed-in <seecref="T:System.IO.Stream"/>.</para>
</summary>
<paramname="document">
<attributionlicense="cc4"from="Microsoft"modified="false"/>The <seecref="T:System.Web.Services.Description.ServiceDescription"/> to write into <paramrefname="stream"/>. </param>
<paramname="stream">
<attributionlicense="cc4"from="Microsoft"modified="false"/>The <seecref="T:System.IO.Stream"/> into which the serialized <seecref="T:System.Web.Services.Description.ServiceDescription"/> is written. </param>