CheckFileExists Property

FileDialog.CheckFileExists Property

Gets or sets a value indicating whether a file dialog displays a warning if the user specifies a filename that does not exist.

Namespace: Microsoft.Win32
Assembly: PresentationFramework (in presentationframework.dll)

public virtual bool CheckFileExists { get; set; }
/** @property */
public boolean get_CheckFileExists ()

/** @property */
public void set_CheckFileExists (boolean value)

public function get CheckFileExists () : boolean

public function set CheckFileExists (value : boolean)

<object CheckFileExists="bool" .../>

Property Value

true if warnings are displayed; otherwise, false. The default in this base class is false.

The OpenFileDialog class sets this property to true in its constructor.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2016 Microsoft