ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Shell.Dialogs.FileOperation.TJamFileOperation.SetProperty

Sets a property of files.

Syntax
Pascal
class procedure SetProperty(const pFileNames: IItemIdListCollection; const pProperty: TShellColumnId; const pValue: TShellPropertyValue; pOptions: TOperationOptions = soDefault); overload; static;
Parameters 
Description 
const pFileNames: IItemIdListCollection 
Files whose property should be changed.  
const pProperty: TShellColumnId 
The property that should be changed.  
const pValue: TShellPropertyValue 
The value of the property that should be set.  
pOptions: TOperationOptions = soDefault 
Optional: The options to use.  
Exceptions 
Description 
if pFileNames contains no valid ItemIdList or if any COM exception occured.  

The following example shows how to set the property "comment" of multiple files:

  var
    Files: IItemIdListCollection;
  begin
    Files := TItemIdListCollection.Create;
    Files.Add('C:UsersPublicMusicsample.mp3');
    Files.Add('C:UsersPublicMusicsample2.mp3');
    TJamFileOperation.SetProperty(Files, TShellColumns.Comment, 'Great song');
  end;