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

Syntax

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

Parameters

inputUri

Type: System.UriSystem.UriSystem::Uri^

The URI for the file containing the XML data. The XmlUrlResolverXmlUrlResolverXmlUrlResolver class is used to convert the path to a canonical data representation.

settings

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

The XdmReaderSettingsXdmReaderSettingsXdmReaderSettings object used to configure the new XdmReaderXdmReaderXdmReader instance. If this is null a null reference (Nothing in Visual Basic) nullptr, an XdmReaderSettingsXdmReaderSettingsXdmReaderSettings with default settings is used.

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
FileNotFoundExceptionFileNotFoundExceptionFileNotFoundException
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptioninputUri is null a null reference (Nothing in Visual Basic) nullptr.
FileNotFoundExceptionFileNotFoundExceptionFileNotFoundExceptionThe file specified by the URI cannot be found..