InitialDirectory Property

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;
	[SecurityCriticalAttribute]
	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:
© 2016 Microsoft