StorageLibraryChange
StorageLibraryChange
StorageLibraryChange
StorageLibraryChange
Class
Definition
Represents a change to an item in a storage library such as the documents, music, or video library.
public : sealed class StorageLibraryChange : IStorageLibraryChangepublic sealed class StorageLibraryChange : IStorageLibraryChangePublic NotInheritable Class StorageLibraryChange Implements IStorageLibraryChange// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
Remarks
Instances of this class are created by the ReadBatchAsync method of the StorageLibraryChangeReader class.
Properties
ChangeType ChangeType ChangeType ChangeType
Gets a StorageLibraryChangeType value that indicates the type of change represented by the object.
public : StorageLibraryChangeType ChangeType { get; }public StorageLibraryChangeType ChangeType { get; }Public ReadOnly Property ChangeType As StorageLibraryChangeType// You can use this property in JavaScript.
- Value
- StorageLibraryChangeType StorageLibraryChangeType StorageLibraryChangeType StorageLibraryChangeType
A StorageLibraryChangeType value that indicates the type of change represented by the object.
Path Path Path Path
Gets the full path of the file or folder in the storage library that changed.
public : PlatForm::String Path { get; }public string Path { get; }Public ReadOnly Property Path As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The full path of the file or folder in the storage library that changed.
PreviousPath PreviousPath PreviousPath PreviousPath
Gets the full path of the item in a storage library before it was moved or renamed.
public : PlatForm::String PreviousPath { get; }public string PreviousPath { get; }Public ReadOnly Property PreviousPath As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The full path of the file or folder in the storage library before it was moved or renamed.
Methods
GetStorageItemAsync() GetStorageItemAsync() GetStorageItemAsync() GetStorageItemAsync()
Gets the storage item that has changed.
public : IAsyncOperation<IStorageItem> GetStorageItemAsync()public IAsyncOperation<IStorageItem> GetStorageItemAsync()Public Function GetStorageItemAsync() As IAsyncOperation( Of IStorageItem )// You can use this method in JavaScript.
When this method completes successfully, it returns an IStorageItem that specifies the item that has changed.
IsOfType(StorageItemTypes) IsOfType(StorageItemTypes) IsOfType(StorageItemTypes) IsOfType(StorageItemTypes)
Indicates whether the current StorageFolder matches the specified StorageItemTypes value.
public : PlatForm::Boolean IsOfType(StorageItemTypes type)public bool IsOfType(StorageItemTypes type)Public Function IsOfType(type As StorageItemTypes) As bool// You can use this method in JavaScript.
The enum value that determines the object type to match against.
True if the StorageFolder matches the specified StorageItemTypes value; otherwise false.