FileDialog.InitialDirectory Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

member InitialDirectory : string with get, set

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.

FileIOPermission

to set the initial directory value. Associated enumeration: Unrestricted

.NET Framework
Available since 3.0
Return to top
Show: