StorageLibraryContentChangedTrigger.Create(StorageLibrary) Méthode

Définition

Crée un déclencheur qui se déclenche lorsqu’un fichier est modifié dans la bibliothèque spécifiée.

public:
 static StorageLibraryContentChangedTrigger ^ Create(StorageLibrary ^ storageLibrary);
 static StorageLibraryContentChangedTrigger Create(StorageLibrary const& storageLibrary);
public static StorageLibraryContentChangedTrigger Create(StorageLibrary storageLibrary);
function create(storageLibrary)
Public Shared Function Create (storageLibrary As StorageLibrary) As StorageLibraryContentChangedTrigger

Paramètres

storageLibrary
StorageLibrary

Emplacement que le déclencheur surveille, tel que la bibliothèque de musique ou la bibliothèque de documents.

Retours

Déclencheur qui surveille l’emplacement spécifié.

Exemples

//Get access to the library that you want to monitor 
StorageLibrary picturesLibrary = await StorageLibrary.GetLibraryAsync(KnownLibraryId.Pictures); 
var trigger = StorageLibraryContentChangedTrigger.Create(picturesLibrary);

Remarques

Pour plus d’informations sur l’utilisation du déclencheur et d’un exemple de code, consultez Surveillance du système de fichiers dans plateforme Windows universelle Apps

S’applique à

Voir aussi