ContentPrefetcher.ContentUris | contentUris property

Applies to Windows only

Array of URIs to download when prefetch is performed for the app.

Syntax


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

Property value

Type: IVector<Uri> [JavaScript/C++] | System.Collections.Generic.IList<Uri> [.NET]

A list of Uri objects.

Remarks

The following example demonstrates the creation and assignment of URIs for prefetching:


//First, create content URIs
var uris = [new Windows.Foundation.Uri("http://www.microsoft.com/logo.jpg"),
            new Windows.Foundation.Uri("http://www.microsoft.com/heroimage.jpg")];

//clear the old list
Windows.Networking.BackgroundTransfer.ContentPrefetcher.ContentUris.Clear();
Windows.Networking.BackgroundTransfer.ContentPrefetcher.IndirectContentUri = null; // Remove this if your app never uses IndirectContentUri

//next set these as the content URIs:
for(vari=0;i<uris.length;i++){
Windows.Networking.BackgroundTransfer.ContentPrefetcher.ContentUris.Append(uris[i]);
}

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