System.Windows.Forms.FileDialog.DefaultExt Property

Gets or sets the default file name extension.

Syntax

[System.ComponentModel.DefaultValue("")]
public string DefaultExt { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the user of your application specifies a file name without an extension, the System.Windows.Forms.FileDialog appends an extension to the file name. The extension that is used is determined by the FileDialog.Filter and FileDialog.DefaultExt properties. If a filter is selected in the System.Windows.Forms.FileDialog and the filter specifies an extension, then that extension is used. If the filter selected uses a wildcard in place of the extension, then the extension specified in the FileDialog.DefaultExt property is used.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0