FileDialog.ValidateNames 屬性

定義

取得或設定值,指出對話框是否只接受有效的 Win32 檔名。

public:
 property bool ValidateNames { bool get(); void set(bool value); };
public bool ValidateNames { get; [System.Security.SecurityCritical] set; }
public bool ValidateNames { get; set; }
[<set: System.Security.SecurityCritical>]
member this.ValidateNames : bool with get, set
member this.ValidateNames : bool with get, set
Public Property ValidateNames As Boolean

屬性值

如果提供的檔名無效時會顯示錯誤訊息則為 true,否則為 false。 預設為 true

屬性

適用於