FileDialog::AddExtension Property
.NET Framework (current version)
Gets or sets a value indicating whether a file dialog automatically adds an extension to a file name if the user omits an extension.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: property bool AddExtension { bool get(); [SecurityCriticalAttribute] void set(bool value); }
Property Value
Type: System::Booleantrue if extensions are added; otherwise, false. The default is true.
FileIOPermission
to set the extension behavior. Associated enumeration: Unrestricted
.NET Framework
Available since 3.0
Available since 3.0
Show: