FileDialog.AddExtension Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value indicating whether a file dialog automatically adds an extension to a file name if the user omits an extension.

Namespace:   Microsoft.Win32
Assembly:  PresentationFramework (in PresentationFramework.dll)

member AddExtension : bool with get, set

Property Value

Type: System.Boolean

true 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
Return to top
Show: