FileDialog.AddExtension Property

 

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)

public bool AddExtension {
	get;
	[SecurityCriticalAttribute]
	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: