Share via


IShellLibrary ::Commit, méthode (shobjidl_core.h)

Valide les mises à jour de la bibliothèque dans un fichier de description de bibliothèque existant.

Syntaxe

HRESULT Commit();

Valeur de retour

Type : HRESULT

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Remarques

IShellLibrary ::Commit peut uniquement être appelé pour enregistrer les mises à jour de bibliothèque dans un fichier existant. Un appel à IShellLibrary ::Commit pour une bibliothèque qui n’a pas de fichier de stockage échoue.

Pour créer et enregistrer un fichier, appelez IShellLibrary ::Save ou SHSaveLibraryInFolderPath.

Si la bibliothèque est enregistrée dans le dossier Bibliothèques connues (FOLDERID_Libraries), les dossiers de la bibliothèque sont automatiquement ajoutés à l’index de recherche.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 7 [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2008 R2 [applications de bureau uniquement]
Plateforme cible Windows
En-tête shobjidl_core.h (incluez Shobjidl.h)

Voir aussi

IShellLibrary

IShellLibrary ::Save

Schéma de description de la bibliothèque

SHSaveLibraryInFolderPath

Bibliothèques Windows