Aracılığıyla paylaş


XmlDocument.LoadFromFileAsync Method

Definition

Overloads

LoadFromFileAsync(IStorageFile)

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

LoadFromFileAsync(IStorageFile, XmlLoadSettings)

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

LoadFromFileAsync(IStorageFile)

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

public:
 static IAsyncOperation<XmlDocument ^> ^ LoadFromFileAsync(IStorageFile ^ file);
/// [Windows.Foundation.Metadata.Overload("LoadFromFileAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<XmlDocument> LoadFromFileAsync(IStorageFile const& file);
[Windows.Foundation.Metadata.Overload("LoadFromFileAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<XmlDocument> LoadFromFileAsync(IStorageFile file);
function loadFromFileAsync(file)
Public Shared Function LoadFromFileAsync (file As IStorageFile) As IAsyncOperation(Of XmlDocument)

Parameters

file
IStorageFile

The file from which to load the document.

Returns

The object that must be used to start the operation.

Attributes

See also

Applies to

LoadFromFileAsync(IStorageFile, XmlLoadSettings)

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

public:
 static IAsyncOperation<XmlDocument ^> ^ LoadFromFileAsync(IStorageFile ^ file, XmlLoadSettings ^ loadSettings);
/// [Windows.Foundation.Metadata.Overload("LoadFromFileWithSettingsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<XmlDocument> LoadFromFileAsync(IStorageFile const& file, XmlLoadSettings const& loadSettings);
[Windows.Foundation.Metadata.Overload("LoadFromFileWithSettingsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<XmlDocument> LoadFromFileAsync(IStorageFile file, XmlLoadSettings loadSettings);
function loadFromFileAsync(file, loadSettings)
Public Shared Function LoadFromFileAsync (file As IStorageFile, loadSettings As XmlLoadSettings) As IAsyncOperation(Of XmlDocument)

Parameters

file
IStorageFile

The file from which to load the document.

loadSettings
XmlLoadSettings

Settings for customizing parser behavior.

Returns

The object that must be used to start the operation.

Attributes

See also

Applies to