Skip to main content
XmlDocument.LoadFromFileAsync(IStorageFile, XmlLoadSettings) | loadFromFileAsync(IStorageFile, XmlLoadSettings) method

Applies to Windows and Windows Phone

Asynchronously loads an XML document from the specified file. The document is parsed using the provided settings.

Syntax


Windows.Data.Xml.Dom.XmlDocument.loadFromFileAsync(file, loadSettings).done( /* Your success and error handlers */ );

public static IAsyncOperation<XmlDocument> LoadFromFileAsync(
  IStorageFile file, 
  XmlLoadSettings loadSettings
)

Public Shared Function LoadFromFileAsync(
  file As IStorageFile,  
  loadSettings As XmlLoadSettings 
) As IAsyncOperation(Of XmlDocument)

public:
static IAsyncOperation<XmlDocument>^ LoadFromFileAsync(
  IStorageFile^ file, 
  XmlLoadSettings^ loadSettings
)

Parameters

file

Type: IStorageFile

The file from which to load the document.

loadSettings

Type: XmlLoadSettings

Settings for customizing parser behavior.

Return value

Type: IAsyncOperation<XmlDocument>

The object that must be used to start the operation.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Data.Xml.Dom
Windows::Data::Xml::Dom [C++]

Metadata

Windows.winmd

See also

XmlDocument
LoadFromFileAsync(IStorageFile)