System.Web.Services.Discovery.DiscoveryReference.ReadDocument Method

Reads the passed System.IO.Stream and returns an instance of the class representing the type of referenced document.

Syntax

public abstract object ReadDocument (System.IO.Stream stream)

Parameters

stream
System.IO.Stream containing the reference document.

Returns

An object with an underlying type matching the type of referenced document.

Remarks

The return value is always an object. However, the underlying type varies, depending on the type of document referenced. For instance, a System.IO.Stream passed into SchemaReference.ReadDocument(System.IO.Stream) returns an instance of System.Xml.Schema.XmlSchema.

Requirements

Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0