共用方式為


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

適用於

另請參閱