Share via


PhotoImportItem Class

Definition

Represents an media item that has been imported from a source.

public ref class PhotoImportItem sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PhotoImportItem final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PhotoImportItem
Public NotInheritable Class PhotoImportItem
Inheritance
Object Platform::Object IInspectable PhotoImportItem
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Get an instance of this class by calling one of the following methods.

Or, handle the PhotoImportFindItemsResult.ItemImported event.

For how-to guidance for adding media import to your app, see Import media from a device.

Version history

Windows version SDK version Value added
1809 17763 Path

Properties

ContentType

Gets the content type of the imported item.

Date

Gets the creation date of the imported item.

DeletedFileNames

Gets a list of the names of files associated with this item that were deleted.

ImportedFileNames

Gets a list of the names of files associated with this item that were imported.

IsSelected

Gets a value indicating whether the item is currently selected for import.

ItemKey

Gets the key used to identify the item.

Name

Gets the name of the item.

Path

Gets the file system path of the PhotoImportItem.

Sibling

Gets the sibling file associated with the item, if one exists.

Sidecars

Gets the list of sidecar files associated with the item, if any exists.

SizeInBytes

Gets the size of the item, in bytes.

Thumbnail

Gets a random access stream containing the thumbnail image associated with the item.

VideoSegments

Gets the list of video segments associated with the item.

Applies to

See also