ShellBrowser Delphi Components Documentation
|
Sets a property of a file.
class procedure SetProperty(const pFileName: string; const pProperty: TShellColumnId; const pValue: TShellPropertyValue; pOptions: TOperationOptions = soDefault); overload; static;
Parameters |
Description |
const pFileName: string |
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 |
EArgumentException |
if pFileName is empty. |
if pFileName is invalid or if any COM exception occured. |
The following example shows how to set the property "comment" of a file:
TJamFileOperation.SetProperty('C:UsersPublicMusicsample.mp3', TShellColumns.Comment, 'Great song');