PhotoImportSource Class

Definition

Represents the source device for a photo import session.

public ref class PhotoImportSource sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PhotoImportSource final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PhotoImportSource
Public NotInheritable Class PhotoImportSource
Inheritance
Object Platform::Object IInspectable PhotoImportSource
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 accessing the PhotoImportSession.Source property or by calling PhotoImportSource.FromIdAsync or PhotoImportSource.FromFolderAsync.

Properties

BatteryLevelPercent

The battery level of the source device.

ConnectionProtocol

Gets the connection protocol that is being used to communicate with the source device.

ConnectionTransport

Gets a value indicating the transport mechanism that is being used for importing items from the source device.

DateTime

Gets the current date and time on the device.

Description

Gets a human-readable description of the source device.

DisplayName

Gets the human-readable display name for the source device.

Id

Gets a unique 16-byte identifier that is common across multiple transports supported by the device.

IsLocked

Gets a value indicating if the source device is locked.

IsMassStorage

Gets a value indicating if the source device is a mass storage device.

Manufacturer

Gets the source device's human-readable manufacturer name.

Model

Gets the device model name.

PowerSource

Gets a value indicating the type of power source being used by the source device, if it is known.

SerialNumber

Gets the serial number of the device.

StorageMedia

Gets a list of objects representing the different storage media exposed by the source device.

Thumbnail

Gets a reference to a stream containing the thumbnail image for the source device.

Type

Gets a value indicating the type of the source device.

Methods

CreateImportSession()

Creates a new photo import session.

FromFolderAsync(IStorageFolder)

Creates a new instance of PhotoImportSource from the specified root folder.

FromIdAsync(String)

Creates a new instance of PhotoImportSource from the specified device ID.

Applies to