MdbDataFileEditor.Filter Property

Note: This property is new in the .NET Framework version 2.0.

Gets the URL filter options for the editor, which is used to filter the items that appear in the URL selection dialog box.

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

protected:
virtual property String^ Filter {
	String^ get () override;
}
/** @property */
protected String get_Filter ()

protected override function get Filter () : String

Property Value

A string that represents one or more URL filter options for the dialog box.

The Filter property is used by the EditValue method when calling the BuildUrl method, which displays the URL selection dialog box to the user at design time.

The Filter property default value indicates two URL filters for the dialog box: one for Microsoft Access database files (*.mdb) and another for all files (*.*).

To specify a custom filter string, derive a class from the MdbDataFileEditor class and override the Filter property to return the custom filter string.

A filter string contains one or more filter options. Each filter option contains a description of the filter, followed by the vertical bar (|) and the filter pattern. The strings for different filtering options are separated by the vertical bar.

The following is an example of a filter string that contains two filter options:

"Microsoft Access Databases (*.mdb)|*.mdb|All Files (*.*)|*.*".

You can specify several filter patterns in a filter option by separating the filter patterns with semicolons. The following is an example of a filter string in which the first filter option specifies two filter patterns:

"Custom Database Files (*.db1; *.db2)|*.db1;*.db2|All Files (*.*)|*.*".

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0
Show: