ContentPrefetcher.IndirectContentUri | indirectContentUri property

Applies to Windows only

Specifies the location of a well-formed XML file that contains a list of resources to be prefetched.

Syntax


var indirectContentUri = Windows.Networking.BackgroundTransfer.ContentPrefetcher.indirectContentUri;
Windows.Networking.BackgroundTransfer.ContentPrefetcher.indirectContentUri = indirectContentUri;

Property value

Type: Windows.Foundation.Uri [JavaScript] | System.Uri [.NET] | Windows::Foundation::Uri [C++]

A Uri for a web resource.

Remarks

The specified resource will be downloaded at the beginning of a prefetch task for an app. Fetching this URL must return a well formatted XML list of additional resources to prefetch.

This resource must be of type application/xml and must adhere to the following schema:

<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="PrefetchUris">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" name="uri" type="xs:anyURI" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

For example:

<?xml version="1.0" encoding="utf-8"?>
<prefetchUris>
	<uri>http://example.com/2013-02-28-headlines.json</uri>
	<uri>http://example.com/2013-02-28-img1295.jpg</uri> 
	<uri>http://example.com/2013-02-28-img1296.jpg</uri>
</prefetchUris>

Azure Mobile Services is an option for developers wishing to host a prefetch XML file. To learn more about Mobile Services, see the Mobile Services Dev Center.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.Networking.BackgroundTransfer
Windows::Networking::BackgroundTransfer [C++]

Metadata

Windows.winmd

See also

ContentPrefetcher
Uri

 

 

Show:
© 2014 Microsoft