This documentation is archived and is not being maintained.

FileDialog.InitialDirectory Property

Gets or sets the initial directory that is displayed by a file dialog.

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

public string InitialDirectory { get; set; }
/** @property */
public String get_InitialDirectory ()

/** @property */
public void set_InitialDirectory (String value)

public function get InitialDirectory () : String

public function set InitialDirectory (value : String)

<object InitialDirectory="string" .../>

Property Value

A String that contains the initial directory. The default is Empty.

If there is no initial directory set, this property will contain Empty rather than a null string.

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