System.IOUtils.TFile.SetAttributes

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

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

C++

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

Propriétés

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

Description

Définit les attributs d'un fichier.

Appelez SetAttributes pour appliquer un nouvel ensemble d'attributs à un fichier donné. Le tableau suivant liste les paramètres attendus par cette méthode.



Nom Signification

Path

Le chemin au fichier pour lequel les attributs sont obtenus.

Attributes

Le nouvel ensemble d'attributs appliqué au fichier.



Remarque :  SetAttributes déclenche une exception si le fichier est inaccessible ou si le chemin n'est pas valide.

Voir aussi