System.IOUtils.TFile.SetAttributes

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure SetAttributes(const Path: string;  const Attributes: TFileAttributes); inline; static;

C++

static void __fastcall SetAttributes(const System::UnicodeString Path, const TFileAttributes Attributes);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TFile

Description

Sets the file attributes.

Call SetAttributes to apply a new set of attributes for a given file. The following table lists the parameters expected by this method.



Name Meaning

Path

The path to the file for which the attributes are obtained.

Attributes

The new set of attributes applied to the file.



Note: SetAttributes raises an exception if the file cannot be accessed or the path is invalid.

See Also

Code Examples