FileListBox.ReadOnly 属性

定义

获取或设置一个值,该值确定 FileListBox 控件是否包含具有只读特性的文件。Gets or sets a value that determines whether a FileListBox control contains files that have read-only attributes.

public:
 property bool ReadOnly { bool get(); void set(bool value); };
public bool ReadOnly { get; set; }
member this.ReadOnly : bool with get, set
Public Property ReadOnly As Boolean

属性值

如果将显示具有 true 特性的文件,则为 ReadOnly;否则为 falsetrue if files that have the ReadOnly attribute will be displayed; otherwise false. 默认值为 trueThe default is true.

注解

使用 FileListBox 控件的 ReadOnly 属性来指定是否在文件列表中显示具有只读属性的文件。Use the ReadOnly property for a FileListBox control to specify whether files that have read-only attributes are displayed in the file list or not.

备注

如果 Normal 属性设置为 true (默认值),则将显示具有只读属性的文件,而不考虑 ReadOnly 属性设置。If the Normal property is set to true (the default), files that have read-only attributes are displayed regardless of the ReadOnly property setting.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic 2008。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

适用于

另请参阅