共用方式為


PhotoImportSession.FindItemsAsync 方法

定義

以非同步方式尋找來源裝置上可供匯入的專案。

public:
 virtual IAsyncOperationWithProgress<PhotoImportFindItemsResult ^, unsigned int> ^ FindItemsAsync(PhotoImportContentTypeFilter contentTypeFilter, PhotoImportItemSelectionMode itemSelectionMode) = FindItemsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<PhotoImportFindItemsResult, uint32_t> FindItemsAsync(PhotoImportContentTypeFilter const& contentTypeFilter, PhotoImportItemSelectionMode const& itemSelectionMode);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<PhotoImportFindItemsResult,uint> FindItemsAsync(PhotoImportContentTypeFilter contentTypeFilter, PhotoImportItemSelectionMode itemSelectionMode);
function findItemsAsync(contentTypeFilter, itemSelectionMode)
Public Function FindItemsAsync (contentTypeFilter As PhotoImportContentTypeFilter, itemSelectionMode As PhotoImportItemSelectionMode) As IAsyncOperationWithProgress(Of PhotoImportFindItemsResult, UInteger)

參數

contentTypeFilter
PhotoImportContentTypeFilter

值,指出尋找作業是否包含結果中的影像、影片或兩者。

itemSelectionMode
PhotoImportItemSelectionMode

值,指出結果中的所有專案、沒有專案或只有新專案一開始標示為已選取。

傳回

IAsyncOperationWithProgress<PhotoImportFindItemsResult,UInt32>

Windows.Foundation.IAsyncOperationWithProgress<Windows.Media.Import.PhotoImportFindItemsResult,unsigned int>

IAsyncOperationWithProgress<PhotoImportFindItemsResult,uint32_t>

非同步作業,會在成功完成時傳回 PhotoImportFindItemsResult

屬性

適用於