다음을 통해 공유


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]);
}

적용 대상

추가 정보