<TypeSignatureLanguage="C#"Value="public sealed class DiscoveryDocumentReference : 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 an URL. 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, such as Service Descriptions, XML Schema Definition language (XSD) schemas, or other discovery documents. This class represents a reference to a discovery document.</para>
<para>Initializes a new instance of the <seecref="T:System.Web.Services.Discovery.DiscoveryDocumentReference"/> class, setting the <seecref="P:System.Web.Services.Discovery.DiscoveryDocumentReference.Ref"/> property to the value of <paramrefname="href"/>.</para>
</summary>
<paramname="href">
<attributionlicense="cc4"from="Microsoft"modified="false"/>Reference to a discovery document. The <seecref="P:System.Web.Services.Discovery.DiscoveryDocumentReference.Ref"/> property is set to the value of <paramrefname="href"/>. </param>
<para>If the discovery document 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 most references, the <seecref="P:System.Web.Services.Discovery.DiscoveryDocumentReference.Ref"/> property is a URL, such as http://www.contoso.com/MyWebService.disco.</para>
<para>If the MIME type is text/xml and the content of <paramrefname="stream"/> is a discovery document, 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>Before invoking the <seecref="M:System.Web.Services.Discovery.DiscoveryDocumentReference.Resolve(System.String,System.IO.Stream)"/> method, the <seecref="P:System.Web.Services.Discovery.DiscoveryReference.ClientProtocol"/> property must be set to a valid instance of <seecref="T:System.Web.Services.Discovery.DiscoveryClientProtocol"/>.</para>
<para>Unless you specifically need to resolve the individual references of a <seecref="T:System.Web.Services.Discovery.DiscoveryDocumentReference"/> object, you should invoke the <seecref="M:System.Web.Services.Discovery.DiscoveryClientProtocol.ResolveAll"/> or <seecref="M:System.Web.Services.Discovery.DiscoveryClientProtocol.ResolveOneLevel"/> methods of <seecref="T:System.Web.Services.Discovery.DiscoveryClientProtocol"/>.</para>
<para>This method resolves all references to discovery documents, XSD schemas, and Service Descriptions in the <seecref="P:System.Web.Services.Discovery.DiscoveryClientProtocol.References"/> property of <seecref="P:System.Web.Services.Discovery.DiscoveryReference.ClientProtocol"/> and any references found in referring discovery documents.</para>
<para>Writes the passed <seecref="T:System.Web.Services.Discovery.DiscoveryDocument"/> into the passed <seecref="T:System.IO.Stream"/>.</para>
</summary>
<paramname="document">
<attributionlicense="cc4"from="Microsoft"modified="false"/>The <seecref="T:System.Web.Services.Discovery.DiscoveryDocument"/> to write into <paramrefname="stream"/>. </param>
<paramname="stream">
<attributionlicense="cc4"from="Microsoft"modified="false"/>The <seecref="T:System.IO.Stream"/> into which the serialized discovery document is written. </param>