PhotoImportFindItemsResult PhotoImportFindItemsResult PhotoImportFindItemsResult PhotoImportFindItemsResult Class

Definition

Represents the result of a operation that finds media items on a source.

public : sealed class PhotoImportFindItemsResult : IPhotoImportFindItemsResult, IPhotoImportFindItemsResult2public sealed class PhotoImportFindItemsResult : IPhotoImportFindItemsResult, IPhotoImportFindItemsResult2Public NotInheritable Class PhotoImportFindItemsResult Implements IPhotoImportFindItemsResult, IPhotoImportFindItemsResult2// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Get an instance of this class by calling PhotoImportSession.FindItemsAsync.

Properties

FoundItems FoundItems FoundItems FoundItems

Gets a list of items that were found on the source.

public : IVectorView<PhotoImportItem> FoundItems { get; }public IReadOnlyList<PhotoImportItem> FoundItems { get; }Public ReadOnly Property FoundItems As IReadOnlyList<PhotoImportItem>// You can use this property in JavaScript.
Value
IVectorView<PhotoImportItem> IReadOnlyList<PhotoImportItem> IReadOnlyList<PhotoImportItem> IReadOnlyList<PhotoImportItem>

A list of items that were found on the source.

HasSucceeded HasSucceeded HasSucceeded HasSucceeded

Gets a value indicating whether the find operation has succeeded.

public : PlatForm::Boolean HasSucceeded { get; }public bool HasSucceeded { get; }Public ReadOnly Property HasSucceeded As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if the find operation has succeeded; otherwise, false.

ImportMode ImportMode ImportMode ImportMode

Gets the photo import mode that determines which types of files are included in the ImportItemsAsync operation.

public : PhotoImportImportMode ImportMode { get; }public PhotoImportImportMode ImportMode { get; }Public ReadOnly Property ImportMode As PhotoImportImportMode// You can use this property in JavaScript.

PhotosCount PhotosCount PhotosCount PhotosCount

Gets the number of photos found on the source.

public : unsigned int PhotosCount { get; }public uint PhotosCount { get; }Public ReadOnly Property PhotosCount As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The number of photos found on the source.

PhotosSizeInBytes PhotosSizeInBytes PhotosSizeInBytes PhotosSizeInBytes

Gets the size of the photos found on the source, in bytes.

public : ulong PhotosSizeInBytes { get; }public ulong PhotosSizeInBytes { get; }Public ReadOnly Property PhotosSizeInBytes As ulong// You can use this property in JavaScript.
Value
ulong ulong ulong ulong

The size of the found photos, in bytes.

SelectedPhotosCount SelectedPhotosCount SelectedPhotosCount SelectedPhotosCount

Gets the number of photos that are currently selected to be included in the ImportItemsAsync operation.

public : unsigned int SelectedPhotosCount { get; }public uint SelectedPhotosCount { get; }Public ReadOnly Property SelectedPhotosCount As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The number of photos that are currently selected.

SelectedPhotosSizeInBytes SelectedPhotosSizeInBytes SelectedPhotosSizeInBytes SelectedPhotosSizeInBytes

Gets the size of the photos that are currently selected to be included in the ImportItemsAsync operation, in bytes.

public : ulong SelectedPhotosSizeInBytes { get; }public ulong SelectedPhotosSizeInBytes { get; }Public ReadOnly Property SelectedPhotosSizeInBytes As ulong// You can use this property in JavaScript.
Value
ulong ulong ulong ulong

The size of the photos that are currently selected, in bytes.

SelectedSiblingsCount SelectedSiblingsCount SelectedSiblingsCount SelectedSiblingsCount

Gets the number of sibling files that are currently selected to be included in the ImportItemsAsync operation.

public : unsigned int SelectedSiblingsCount { get; }public uint SelectedSiblingsCount { get; }Public ReadOnly Property SelectedSiblingsCount As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The number of sibling files that are currently selected.

SelectedSiblingsSizeInBytes SelectedSiblingsSizeInBytes SelectedSiblingsSizeInBytes SelectedSiblingsSizeInBytes

Gets the size of the sibling files that are currently selected to be included in the ImportItemsAsync operation, in bytes.

public : ulong SelectedSiblingsSizeInBytes { get; }public ulong SelectedSiblingsSizeInBytes { get; }Public ReadOnly Property SelectedSiblingsSizeInBytes As ulong// You can use this property in JavaScript.
Value
ulong ulong ulong ulong

The size of the sibling files that are currently selected.

SelectedSidecarsCount SelectedSidecarsCount SelectedSidecarsCount SelectedSidecarsCount

Gets the number of sidecar files that are currently selected to be included in the ImportItemsAsync operation.

public : unsigned int SelectedSidecarsCount { get; }public uint SelectedSidecarsCount { get; }Public ReadOnly Property SelectedSidecarsCount As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The number of sidecar files that are currently selected.

SelectedSidecarsSizeInBytes SelectedSidecarsSizeInBytes SelectedSidecarsSizeInBytes SelectedSidecarsSizeInBytes

Gets the size of the sidecar files that are currently selected to be included in the ImportItemsAsync operation, in bytes.

public : ulong SelectedSidecarsSizeInBytes { get; }public ulong SelectedSidecarsSizeInBytes { get; }Public ReadOnly Property SelectedSidecarsSizeInBytes As ulong// You can use this property in JavaScript.
Value
ulong ulong ulong ulong

The size of the sidecar files that are currently selected.

SelectedTotalCount SelectedTotalCount SelectedTotalCount SelectedTotalCount

Gets the total number of items that are currently selected to be included in the ImportItemsAsync operation.

public : unsigned int SelectedTotalCount { get; }public uint SelectedTotalCount { get; }Public ReadOnly Property SelectedTotalCount As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The total number of items that are currently selected

SelectedTotalSizeInBytes SelectedTotalSizeInBytes SelectedTotalSizeInBytes SelectedTotalSizeInBytes

Gets the total size of the all items that are currently selected to be included in the ImportItemsAsync operation, in bytes.

public : ulong SelectedTotalSizeInBytes { get; }public ulong SelectedTotalSizeInBytes { get; }Public ReadOnly Property SelectedTotalSizeInBytes As ulong// You can use this property in JavaScript.
Value
ulong ulong ulong ulong

The total size of the all items that are currently selected, in bytes.

SelectedVideosCount SelectedVideosCount SelectedVideosCount SelectedVideosCount

Gets the number of videos that are currently selected to be included in the ImportItemsAsync operation.

public : unsigned int SelectedVideosCount { get; }public uint SelectedVideosCount { get; }Public ReadOnly Property SelectedVideosCount As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The number of videos that are currently selected.

SelectedVideosSizeInBytes SelectedVideosSizeInBytes SelectedVideosSizeInBytes SelectedVideosSizeInBytes

Gets the size of the videos that are currently selected to be included in the ImportItemsAsync operation, in bytes.

public : ulong SelectedVideosSizeInBytes { get; }public ulong SelectedVideosSizeInBytes { get; }Public ReadOnly Property SelectedVideosSizeInBytes As ulong// You can use this property in JavaScript.
Value
ulong ulong ulong ulong

The size of the videos that are currently selected, in bytes.

Session Session Session Session

Gets the photo import session associated with the find operation.

public : PhotoImportSession Session { get; }public PhotoImportSession Session { get; }Public ReadOnly Property Session As PhotoImportSession// You can use this property in JavaScript.
Value
PhotoImportSession PhotoImportSession PhotoImportSession PhotoImportSession

The photo import session associated with the find operation.

SiblingsCount SiblingsCount SiblingsCount SiblingsCount

Gets the number of sibling files found on the source.

public : unsigned int SiblingsCount { get; }public uint SiblingsCount { get; }Public ReadOnly Property SiblingsCount As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The number of sibling files found on the source.

SiblingsSizeInBytes SiblingsSizeInBytes SiblingsSizeInBytes SiblingsSizeInBytes

Gets the size of the found sibling files, in bytes.

public : ulong SiblingsSizeInBytes { get; }public ulong SiblingsSizeInBytes { get; }Public ReadOnly Property SiblingsSizeInBytes As ulong// You can use this property in JavaScript.
Value
ulong ulong ulong ulong

The size of the found sibling files, in bytes.

SidecarsCount SidecarsCount SidecarsCount SidecarsCount

Gets the number of sidecar files found on the source.

public : unsigned int SidecarsCount { get; }public uint SidecarsCount { get; }Public ReadOnly Property SidecarsCount As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The number of sidecar files found on the source.

SidecarsSizeInBytes SidecarsSizeInBytes SidecarsSizeInBytes SidecarsSizeInBytes

Gets the size of the found sidecar files, in bytes.

public : ulong SidecarsSizeInBytes { get; }public ulong SidecarsSizeInBytes { get; }Public ReadOnly Property SidecarsSizeInBytes As ulong// You can use this property in JavaScript.
Value
ulong ulong ulong ulong

The size of the found sidecar files, in bytes.

TotalCount TotalCount TotalCount TotalCount

Gets the total number of items found on the source.

public : unsigned int TotalCount { get; }public uint TotalCount { get; }Public ReadOnly Property TotalCount As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The total number of items found on the source.

TotalSizeInBytes TotalSizeInBytes TotalSizeInBytes TotalSizeInBytes

Gets the total size of all items found on the source, in bytes.

public : ulong TotalSizeInBytes { get; }public ulong TotalSizeInBytes { get; }Public ReadOnly Property TotalSizeInBytes As ulong// You can use this property in JavaScript.
Value
ulong ulong ulong ulong

The total size of all items found on the source, in bytes.

VideosCount VideosCount VideosCount VideosCount

Gets the number of videos found on the source.

public : unsigned int VideosCount { get; }public uint VideosCount { get; }Public ReadOnly Property VideosCount As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The number of videos found on the source.

VideosSizeInBytes VideosSizeInBytes VideosSizeInBytes VideosSizeInBytes

Gets the size of the videos found on the source, in bytes.

public : ulong VideosSizeInBytes { get; }public ulong VideosSizeInBytes { get; }Public ReadOnly Property VideosSizeInBytes As ulong// You can use this property in JavaScript.
Value
ulong ulong ulong ulong

The size of the found videos, in bytes.

Methods

AddItemsInDateRangeToSelection(DateTime, TimeSpan) AddItemsInDateRangeToSelection(DateTime, TimeSpan) AddItemsInDateRangeToSelection(DateTime, TimeSpan) AddItemsInDateRangeToSelection(DateTime, TimeSpan)

Adds all items in the specified date range to the current selection.

public : void AddItemsInDateRangeToSelection(DateTime rangeStart, TimeSpan rangeLength)public void AddItemsInDateRangeToSelection(DateTimeOffset rangeStart, TimeSpan rangeLength)Public Function AddItemsInDateRangeToSelection(rangeStart As DateTimeOffset, rangeLength As TimeSpan) As void// You can use this method in JavaScript.
Parameters
rangeStart
DateTime DateTimeOffset DateTimeOffset DateTimeOffset

The start of the date range.

rangeLength
TimeSpan TimeSpan TimeSpan TimeSpan

The length of the date range.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

ImportItemsAsync() ImportItemsAsync() ImportItemsAsync() ImportItemsAsync()

Asynchronously imports the selected items from the source.

public : IAsyncOperationWithProgress<PhotoImportImportItemsResult, PhotoImportProgress> ImportItemsAsync()public IAsyncOperationWithProgress<PhotoImportImportItemsResult, PhotoImportProgress> ImportItemsAsync()Public Function ImportItemsAsync() As IAsyncOperationWithProgress( Of PhotoImportImportItemsResult, PhotoImportProgress )// You can use this method in JavaScript.
Returns

SelectAll() SelectAll() SelectAll() SelectAll()

Selects all items found on the source to be included in the ImportItemsAsync operation.

public : void SelectAll()public void SelectAll()Public Function SelectAll() As void// You can use this method in JavaScript.

SelectNewAsync() SelectNewAsync() SelectNewAsync() SelectNewAsync()

Selects all new items found on the source to be included in the ImportItemsAsync operation.

public : IAsyncAction SelectNewAsync()public IAsyncAction SelectNewAsync()Public Function SelectNewAsync() As IAsyncAction// You can use this method in JavaScript.
Returns

An asynchronous operation.

SelectNone() SelectNone() SelectNone() SelectNone()

Deselects all items found on the source, preventing them from being included in the ImportItemsAsync operation.

public : void SelectNone()public void SelectNone()Public Function SelectNone() As void// You can use this method in JavaScript.

SetImportMode(PhotoImportImportMode) SetImportMode(PhotoImportImportMode) SetImportMode(PhotoImportImportMode) SetImportMode(PhotoImportImportMode)

Sets the photo import mode that determines which types of files are included in the ImportItemsAsync operation.

public : void SetImportMode(PhotoImportImportMode value)public void SetImportMode(PhotoImportImportMode value)Public Function SetImportMode(value As PhotoImportImportMode) As void// You can use this method in JavaScript.
Parameters

Events

ItemImported ItemImported ItemImported ItemImported

Occurs when an item is imported.

public : event TypedEventHandler ItemImported<PhotoImportFindItemsResult,  PhotoImportItemImportedEventArgs>public event TypedEventHandler ItemImported<PhotoImportFindItemsResult,  PhotoImportItemImportedEventArgs>Public Event ItemImported<PhotoImportFindItemsResult,  PhotoImportItemImportedEventArgs>// You can use this event in JavaScript.

SelectionChanged SelectionChanged SelectionChanged SelectionChanged

Occurs when the set of items selected to be included in the ImportItemsAsync operation changes.

public : event TypedEventHandler SelectionChanged<PhotoImportFindItemsResult,  PhotoImportSelectionChangedEventArgs>public event TypedEventHandler SelectionChanged<PhotoImportFindItemsResult,  PhotoImportSelectionChangedEventArgs>Public Event SelectionChanged<PhotoImportFindItemsResult,  PhotoImportSelectionChangedEventArgs>// You can use this event in JavaScript.