FileDialog.InitialDirectory Property

Definition

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

public:
 property System::String ^ InitialDirectory { System::String ^ get(); void set(System::String ^ value); };
[set: System.Security.SecurityCritical]
public string InitialDirectory { get; set; }
member this.InitialDirectory : string with get, set
Public Property InitialDirectory As String

Property Value

A String that contains the initial directory. The default is Empty.

Attributes

Remarks

If there is no initial directory set, this property will contain Empty rather than a null string.

Security

FileIOPermission
to set the initial directory value. Associated enumeration: Unrestricted

Applies to