Export (0) Print
Expand All

FileDialog.InitialDirectory Property

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

Namespace:  Microsoft.Win32
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: Not mapped to an xmlns.

public string InitialDirectory { get; set; }
<object InitialDirectory="string" .../>

Property Value

Type: System.String
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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Show:
© 2015 Microsoft