System.IOUtils.TFile.SetAttributes

提供: RAD Studio API Documentation
移動先: 案内検索

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 TFile

説明

ファイル属性を設定します。

指定のファイルに新しい属性セットを適用するには、SetAttributes を呼び出します。このメソッドに必要なパラメータの一覧を以下の表に示します。



名前 意味

Path

属性を設定するファイルのパス。

属性

ファイルに適用する新しい属性セット。



メモ:  ファイルにアクセスできない場合やパスが無効な場合、SetAttributes は例外を発生させます。

関連項目