This documentation is archived and is not being maintained.

MailDefinitionBodyFileNameEditor::Filter Property

Gets the list of file types for the MailDefinitionBodyFileNameEditor object to accept.

Namespace:  System.Web.UI.Design.WebControls
Assembly:  System.Design (in System.Design.dll)

protected:
virtual property String^ Filter {
	String^ get () override;
}

Property Value

Type: System::String
A string specifying a user-friendly name for each accepted file type and file specifications for each type.

The format for the Filter property for each type is as follows:

  1. A user-friendly description.

  2. A vertical bar (|).

  3. File specifications, separated by a semicolon (;).

  4. Another vertical bar (|).

For example, a filter that specifies text files, HTML files, and all files would look like the following example, in EN-US locale:

Text Files(*.txt)|*.txt|HTML Files(*.htm;*.html)|*.htm;*.html|All Files(*.*)|*.*|

A localized version of this string is the default value for the Filter.

Notes to Inheritors:

Override the Filter property to return a value that is different from the default.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: