- contentType
- The MIME type of stream.
- stream
- The System.IO.Stream containing the referenced document.
If the MIME type is text/xml and the content of stream is a discovery document, then the contents of stream are added to the DiscoveryClientProtocol.References and DiscoveryClientProtocol.Documents properties of DiscoveryReference.ClientProtocol.
Before invoking the DiscoveryDocumentReference.Resolve(string, System.IO.Stream) method, the DiscoveryReference.ClientProtocol property must be set to a valid instance of System.Web.Services.Discovery.DiscoveryClientProtocol.