NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileDialog.RestoreDirectory

Gets or sets a value indicating whether the dialog box restores the current directory before closing.

[Visual Basic]
Public Property RestoreDirectory As Boolean
[C#]
public bool RestoreDirectory {get; set;}
[C++]
public: __property bool get_RestoreDirectory();
public: __property void set_RestoreDirectory(bool);
[JScript]
public function get RestoreDirectory() : Boolean;
public function set RestoreDirectory(Boolean);

Property Value

true if the dialog box restores the current directory to its original value if the user changed the directory while searching for files; otherwise, false. The default value is false.

See Also

FileDialog Class | FileDialog Members | System.WinForms Namespace | System.security.Permissions.FileDialog.InitialDirectory