Compartilhar via


FileDialogOptionsBase.InitialDirectory Property

Definition

Gets or initializes the initial directory the dialog should have open. This should be an absolute path. If this is an empty string, the initial directory will default to the last opened directory, but if this is the first time, it is the root folder. If this is set, we pass in a flag to the dialog to open to the specified directory instead of the last opened directory. If an invalid directory is passed, we use the default.

public string InitialDirectory { get; init; }
member this.InitialDirectory : string with get, set
Public Property InitialDirectory As String

Property Value

Applies to