PhotoImportSession Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a photo import session with a photo import source.
public ref class PhotoImportSession sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PhotoImportSession final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PhotoImportSession : System.IDisposable
Public NotInheritable Class PhotoImportSession
Implements IDisposable
- Inheritance
- Attributes
- Implements
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 accessing the PhotoImportOperation.Session property or by calling PhotoImportSource.CreateImportSession.
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 |
---|---|---|
1607 | 14393 | RememberDeselectedItems |
1607 | 14393 | SubfolderDateFormat |
Properties
AppendSessionDateToDestinationFolder |
Gets or sets a value specifying whether the session date should be appended to the destination folder name. |
DestinationFileNamePrefix |
Gets or sets the prefix for the destination file name. |
DestinationFolder |
Gets or sets the destination folder for the photo import session. |
RememberDeselectedItems |
Gets a value indicating whether the deselected items for the session should be remembered. |
SessionId |
Gets a unique identifier for the import session. |
Source |
Gets an object representing the source device associated with the photo import session. |
SubfolderCreationMode |
Gets or sets a value indicating the method used for naming subfolders within the destination folder. |
SubfolderDateFormat |
Gets or sets a value indicating the date format used by the session for subfolders. |
Methods
Close() |
Closes the photo import session and releases associated resources. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
FindItemsAsync(PhotoImportContentTypeFilter, PhotoImportItemSelectionMode) |
Asynchronously finds items on the source device that are available for import. |