System.IOUtils.TPath.SetAttributes
Delphi
class procedure SetAttributes(const Path: string; const Attributes: TFileAttributes); inline; static;
C++
static void __fastcall SetAttributes(const System::UnicodeString Path, const TFileAttributes Attributes);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
説明
ファイルまたはディレクトリ属性を設定します。
指定のファイルまたはディレクトリに新しい属性セットを適用するには、SetAttributes を呼び出します。
このメソッドに必要なパラメータの一覧を以下の表に示します。
名前 | 意味 |
---|---|
パス |
属性を取得するファイルまたはディレクトリのパス。 |
メモ: ファイルまたはディレクトリにアクセスできない場合やパスが無効な場合には、SetAttributes は例外を発生させます。