XdmDocument Constructor (string, Stream)XdmDocument Constructor (String, Stream)XdmDocument Constructor (String^, Stream^)

Initializes a new instance of the XdmDocumentXdmDocumentXdmDocument class from the XML data that is contained in the specified StreamStreamStream object.

Syntax

Public Sub New ( _
    uri As String, _
    stream As System.IO.Stream _
)
public XdmDocument(
    string uri,
    System.IO.Stream stream
)
public:
XdmDocument(
    String^ uri, 
    System.IO::Stream^ stream
)
 

Parameters

uri

Type: System.StringSystem.StringSystem::String^

The URI of the document.

stream

Type: System.IO.StreamSystem.IO.StreamSystem.IO::Stream^

The StreamStreamStream from which to read the document.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionstream is null a null reference (Nothing in Visual Basic) nullptr.
LicenceExceptionLicenceExceptionLicenceExceptionThis version of XmlPrime has expired.
XmlExceptionXmlExceptionXmlExceptionAn error was encountered in the XML data.