Udostępnij za pośrednictwem


StorageLibraryChange Class

Definition

Represents a change to an item in a storage library such as the documents, music, or video library.

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

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

Instances of this class are created by the ReadBatchAsync method of the StorageLibraryChangeReader class.

Properties

ChangeType

Gets a StorageLibraryChangeType value that indicates the type of change represented by the object.

Path

Gets the full path of the file or folder in the storage library that changed.

PreviousPath

Gets the full path of the item in a storage library before it was moved or renamed.

Methods

GetStorageItemAsync()

Gets the storage item that has changed.

IsOfType(StorageItemTypes)

Indicates whether the current StorageFolder matches the specified StorageItemTypes value.

Applies to

See also