FileDialog.CheckFileExists 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示如果用户指定不存在的文件名,则文件对话框是否显示警告。
public:
virtual property bool CheckFileExists { bool get(); void set(bool value); };
public:
property bool CheckFileExists { bool get(); void set(bool value); };
public virtual bool CheckFileExists { get; [System.Security.SecurityCritical] set; }
public bool CheckFileExists { get; set; }
public virtual bool CheckFileExists { get; set; }
[<set: System.Security.SecurityCritical>]
member this.CheckFileExists : bool with get, set
member this.CheckFileExists : bool with get, set
Public Overridable Property CheckFileExists As Boolean
Public Property CheckFileExists As Boolean
属性值
true 如果显示警告,则为否则,为 false. 此基类中的默认值为 false.
- 特性
注解
类 OpenFileDialog 将此属性设置为 true 在其构造函数中。