This documentation is archived and is not being maintained.

DiscoveryReference.ReadDocument Method

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

[Visual Basic]
Public MustOverride Function ReadDocument( _
   ByVal stream As Stream _
) As Object
[C#]
public abstract object ReadDocument(
 Stream stream
);
[C++]
public: virtual Object* ReadDocument(
 Stream* stream
) = 0;
[JScript]
public abstract function ReadDocument(
   stream : Stream
) : Object;

Parameters

stream
Stream containing the reference document.

Return Value

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 Stream passed into SchemaReference.ReadDocument returns an instance of XmlSchema.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

DiscoveryReference Class | DiscoveryReference Members | System.Web.Services.Discovery Namespace

Show: