Constants.vbReadOnly 欄位

定義

表示該檔案為唯讀檔案,用於檔案存取功能。

public: Microsoft::VisualBasic::FileAttribute vbReadOnly = 1;
public const Microsoft.VisualBasic.FileAttribute vbReadOnly = 1;
val mutable vbReadOnly : Microsoft.VisualBasic.FileAttribute
Public Const vbReadOnly As FileAttribute  = 1

欄位值

Value = 1

備註

當你呼叫 Dir、 或 函SetAttr式時,你可以在程式碼中用FileAttribute列舉來取代GetAttr實際的值。

Attributes 論證取 FileAttribute 列舉成員。

執行檔案 I/O 操作時,該 My.Computer.FileSystem 物件比傳統檔案 I/O 方法提供更高的效能與易用性。 欲了解更多資訊,請參閱 FileSystem 物件。

適用於

另請參閱