Reads the passed System.IO.Stream and returns an instance of the class representing the type of referenced document.
- stream
System.IO.Stream containing the reference document.
![]()
An object with an underlying type matching the type of referenced document.
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.