PhotoImportItem
PhotoImportItem
PhotoImportItem
PhotoImportItem
Class
Definition
Represents an media item that has been imported from a source.
public : sealed class PhotoImportItem : IPhotoImportItempublic sealed class PhotoImportItem : IPhotoImportItemPublic NotInheritable Class PhotoImportItem Implements IPhotoImportItem// You can use this class in JavaScript.
- Attributes
| 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 one of the following methods.
- PhotoImportSession.FindItemsAsync
- PhotoImportFindItemsResult.ImportItemsAsync
- DeleteImportedItemsFromSourceAsync Or, handle the PhotoImportFindItemsResult.ItemImported event.
For how-to guidance for adding media import to your app, see Import media from a device.
Properties
ContentType ContentType ContentType ContentType
Gets the content type of the imported item.
public : PhotoImportContentType ContentType { get; }public PhotoImportContentType ContentType { get; }Public ReadOnly Property ContentType As PhotoImportContentType// You can use this property in JavaScript.
The content type of the imported item.
Date Date Date Date
Gets the creation date of the imported item.
public : DateTime Date { get; }public DateTimeOffset Date { get; }Public ReadOnly Property Date As DateTimeOffset// You can use this property in JavaScript.
- Value
- DateTime DateTimeOffset DateTimeOffset DateTimeOffset
The creation date of the imported item.
DeletedFileNames DeletedFileNames DeletedFileNames DeletedFileNames
Gets a list of the names of files associated with this item that were deleted.
public : IVectorView<string> DeletedFileNames { get; }public IReadOnlyList<string> DeletedFileNames { get; }Public ReadOnly Property DeletedFileNames As IReadOnlyList<string>// You can use this property in JavaScript.
- Value
- IVectorView<PlatForm::String> IReadOnlyList<string> IReadOnlyList<string> IReadOnlyList<string>
A list of the names of files associated with this item that were deleted.
ImportedFileNames ImportedFileNames ImportedFileNames ImportedFileNames
Gets a list of the names of files associated with this item that were imported.
public : IVectorView<string> ImportedFileNames { get; }public IReadOnlyList<string> ImportedFileNames { get; }Public ReadOnly Property ImportedFileNames As IReadOnlyList<string>// You can use this property in JavaScript.
- Value
- IVectorView<PlatForm::String> IReadOnlyList<string> IReadOnlyList<string> IReadOnlyList<string>
A list of the names of files associated with this item that were imported.
IsSelected IsSelected IsSelected IsSelected
Gets a value indicating whether the item is currently selected for import.
public : PlatForm::Boolean IsSelected { get; set; }public bool IsSelected { get; set; }Public ReadWrite Property IsSelected As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
True if the item is currently selected; otherwise, false.
ItemKey ItemKey ItemKey ItemKey
Gets the key used to identify the item.
public : ulong ItemKey { get; }public ulong ItemKey { get; }Public ReadOnly Property ItemKey As ulong// You can use this property in JavaScript.
- Value
- ulong ulong ulong ulong
The key used to identify the item.
Name Name Name Name
Gets the name of the item.
public : PlatForm::String Name { get; }public string Name { get; }Public ReadOnly Property Name As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The name of the item.
Sibling Sibling Sibling Sibling
Gets the sibling file associated with the item, if one exists.
public : PhotoImportSidecar Sibling { get; }public PhotoImportSidecar Sibling { get; }Public ReadOnly Property Sibling As PhotoImportSidecar// You can use this property in JavaScript.
The sibling file associated with the item
Sidecars Sidecars Sidecars Sidecars
Gets the list of sidecar files associated with the item, if any exists.
public : IVectorView<PhotoImportSidecar> Sidecars { get; }public IReadOnlyList<PhotoImportSidecar> Sidecars { get; }Public ReadOnly Property Sidecars As IReadOnlyList<PhotoImportSidecar>// You can use this property in JavaScript.
- Value
- IVectorView<PhotoImportSidecar> IReadOnlyList<PhotoImportSidecar> IReadOnlyList<PhotoImportSidecar> IReadOnlyList<PhotoImportSidecar>
The list of sidecar files associated with the item
SizeInBytes SizeInBytes SizeInBytes SizeInBytes
Gets the size of the item, in bytes.
public : ulong SizeInBytes { get; }public ulong SizeInBytes { get; }Public ReadOnly Property SizeInBytes As ulong// You can use this property in JavaScript.
- Value
- ulong ulong ulong ulong
The size of the item, in bytes.
Thumbnail Thumbnail Thumbnail Thumbnail
Gets a random access stream containing the thumbnail image associated with the item.
public : IRandomAccessStreamReference Thumbnail { get; }public IRandomAccessStreamReference Thumbnail { get; }Public ReadOnly Property Thumbnail As IRandomAccessStreamReference// You can use this property in JavaScript.
- Value
- IRandomAccessStreamReference IRandomAccessStreamReference IRandomAccessStreamReference IRandomAccessStreamReference
A random access stream containing the thumbnail image associated with the item.
VideoSegments VideoSegments VideoSegments VideoSegments
Gets the list of video segments associated with the item.
public : IVectorView<PhotoImportVideoSegment> VideoSegments { get; }public IReadOnlyList<PhotoImportVideoSegment> VideoSegments { get; }Public ReadOnly Property VideoSegments As IReadOnlyList<PhotoImportVideoSegment>// You can use this property in JavaScript.
- Value
- IVectorView<PhotoImportVideoSegment> IReadOnlyList<PhotoImportVideoSegment> IReadOnlyList<PhotoImportVideoSegment> IReadOnlyList<PhotoImportVideoSegment>
The list of video segments associated with the item.