Dela via


XmlDocument.LoadFromUriAsync Method

Definition

Overloads

LoadFromUriAsync(Uri)

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

LoadFromUriAsync(Uri, XmlLoadSettings)

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

LoadFromUriAsync(Uri)

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

public:
 static IAsyncOperation<XmlDocument ^> ^ LoadFromUriAsync(Uri ^ uri);
/// [Windows.Foundation.Metadata.Overload("LoadFromUriAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<XmlDocument> LoadFromUriAsync(Uri const& uri);
[Windows.Foundation.Metadata.Overload("LoadFromUriAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<XmlDocument> LoadFromUriAsync(System.Uri uri);
function loadFromUriAsync(uri)
Public Shared Function LoadFromUriAsync (uri As Uri) As IAsyncOperation(Of XmlDocument)

Parameters

uri
Uri Uri

A URL that specifies the location of the XML file.

Returns

The object that must be used to start the operation.

Attributes

See also

Applies to

LoadFromUriAsync(Uri, XmlLoadSettings)

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

public:
 static IAsyncOperation<XmlDocument ^> ^ LoadFromUriAsync(Uri ^ uri, XmlLoadSettings ^ loadSettings);
/// [Windows.Foundation.Metadata.Overload("LoadFromUriWithSettingsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<XmlDocument> LoadFromUriAsync(Uri const& uri, XmlLoadSettings const& loadSettings);
[Windows.Foundation.Metadata.Overload("LoadFromUriWithSettingsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<XmlDocument> LoadFromUriAsync(System.Uri uri, XmlLoadSettings loadSettings);
function loadFromUriAsync(uri, loadSettings)
Public Shared Function LoadFromUriAsync (uri As Uri, loadSettings As XmlLoadSettings) As IAsyncOperation(Of XmlDocument)

Parameters

uri
Uri Uri

A URL that specifies the location of the XML file.

loadSettings
XmlLoadSettings

Customizes parser behavior.

Returns

An object that must be used to start the operation.

Attributes

Remarks

This operation does not start until a call is made to the IAsyncOperation::StartOperation method.

See also

Applies to