This documentation is archived and is not being maintained.

FileDialog.DefaultExt Property

Gets or sets a value that specifies the default extension string to use to filter the list of files that are displayed.

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

public string DefaultExt { get; set; }
/** @property */
public String get_DefaultExt ()

/** @property */
public void set_DefaultExt (String value)

public function get DefaultExt () : String

public function set DefaultExt (value : String)

<object DefaultExt="string" .../>

Property Value

The default extension string. The default is Empty.

By default, the AddExtension property attempts to determine the extension to filter the displayed file list from the Filter property. If the extension cannot be determined from the Filter property, DefaultExt will be used instead.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: