ContentPrefetcher.ContentUris Свойство
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Массив универсальных кодов ресурса (URI) для скачивания при выполнении предварительной выборки для приложения.
public:
static property IVector<Uri ^> ^ ContentUris { IVector<Uri ^> ^ get(); };
static IVector<Uri> ContentUris();
public static IList<System.Uri> ContentUris { get; }
var iVector = ContentPrefetcher.contentUris;
Public Shared ReadOnly Property ContentUris As IList(Of Uri)
Значение свойства
Список объектов URI .
Комментарии
В следующем примере показано создание и назначение URI для предварительной выборки:
//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]);
}