语言

SaveFileDialog.CreateTestFile 属性

定义

获取或设置一个值,该值指示对话框是否会尝试在所选路径上创建测试文件。

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

属性值

true 如果对话框将尝试在所选路径上创建测试文件,则为 ;否则,为 false. 默认值为 true。

注解

如果未设置此标志,调用应用程序必须处理创建项时发现的错误,例如拒绝访问错误。

适用于