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

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

Syntax

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

Parameters

uri

Type: System.StringSystem.StringSystem::String^

The URI of the document.

textReader

Type: System.IO.TextReaderSystem.IO.TextReaderSystem.IO::TextReader^

The TextReaderTextReaderTextReader from which to read the document.

Exceptions

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