XdmReader.Create Method (Stream, XdmReaderSettings, XmlParserContext)XdmReader.Create Method (Stream, XdmReaderSettings, XmlParserContext)XdmReader::Create Method (Stream^, XdmReaderSettings^, XmlParserContext^)

Creates an XdmReaderXdmReaderXdmReader instance using the specified stream and XdmReaderSettingsXdmReaderSettingsXdmReaderSettings object.

Syntax

Public Shared Function Create( _
    input As System.IO.Stream, _
    settings As XdmReaderSettings, _
    inputContext As System.Xml.XmlParserContext _
) As XdmReader
public static XdmReader Create(
    System.IO.Stream input,
    XdmReaderSettings settings,
    System.Xml.XmlParserContext inputContext
)
public:
static XdmReader^ Create(
    System.IO::Stream^ input, 
    XdmReaderSettings^ settings, 
    System.Xml::XmlParserContext^ inputContext
)
 

Parameters

input

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

The stream containing the XML data.

settings

Type: XmlPrime.Serialization.XdmReaderSettingsXmlPrime.Serialization.XdmReaderSettingsXmlPrime.Serialization::XdmReaderSettings^

The XdmReaderSettingsXdmReaderSettingsXdmReaderSettings object used to configure the new XmlReaderXmlReaderXmlReader instance. This value can be null a null reference (Nothing in Visual Basic) nullptr.

inputContext

Type: System.Xml.XmlParserContextSystem.Xml.XmlParserContextSystem.Xml::XmlParserContext^

The XmlParserContextXmlParserContextXmlParserContext object that provides the context information required to parse the XML fragment. The context information can include the XmlNameTableXmlNameTableXmlNameTable to use, encoding, namespace scope, the current xml:lang and xml:space scope, base URI, and document type definition. This value can be null a null reference (Nothing in Visual Basic) nullptr.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptioninput is null a null reference (Nothing in Visual Basic) nullptr.