Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

StorageFolder.TryGetChangeTracker Method

Definition

Namespace:
Windows.Storage

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.

Gets the StorageLibraryChangeTracker associated with a StorageFolder.

public:
 virtual StorageLibraryChangeTracker ^ TryGetChangeTracker() = TryGetChangeTracker;
StorageLibraryChangeTracker TryGetChangeTracker();
public StorageLibraryChangeTracker TryGetChangeTracker();
function tryGetChangeTracker()
Public Function TryGetChangeTracker () As StorageLibraryChangeTracker

Returns

The StorageLibraryChangeTracker associated with a StorageFolder.

Windows requirements

Requirements Description
Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Examples

This example demonstrates getting a StorageLibraryChangeTracker from a StorageFolder, and then enabling the tracker.

private void EnableChangeTracker(StorageFolder folder) 
{ 
 // Get the change tracker object corresponding to the StorageFolder in the parameters 
 StorageLibraryChangeTracker tracker = folder.TryGetChangeTracker(); 
 if (tracker != null) 
 { 
 tracker.Enable(); 
 } 
} 

Applies to

See also


Feedback

Was this page helpful?