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

Sets a property of a file.

Syntax
Pascal
class procedure SetProperty(const pFileName: IItemIdList; const pProperty: TShellColumnId; const pValue: TShellPropertyValue; pOptions: TOperationOptions = soDefault); overload; static;
Parameters 
Description 
const pFileName: IItemIdList 
File 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 pFileName is invalid or if any COM exception occured.  

The following example shows how to set the property "comment" of a file:

  var
    ItemIdList: IItemIdList;
  begin
    ItemIdList := TJamItemIdList.Create('C:UsersPublicMusicsample.mp3');
    TJamFileOperation.SetProperty(ItemIdList, TShellColumns.Comment, 'Great song');
  end;