XdmReader.Create Method (Uri)XdmReader.Create Method (Uri)XdmReader::Create Method (Uri^)

Creates an XdmReaderXdmReaderXdmReader instance using the specified URI.

Syntax

Public Shared Function Create( _
    inputUri As Uri _
) As XdmReader
public static XdmReader Create(
    Uri inputUri
)
public:
static XdmReader^ Create(
    Uri^ inputUri
)
 

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.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException The inputUri value is null a null reference (Nothing in Visual Basic) nullptr.
FileNotFoundExceptionFileNotFoundExceptionFileNotFoundException The file specified by the URI cannot be found..
UriFormatExceptionUriFormatExceptionUriFormatExceptionThe URI format is not correct.