MailDefinitionBodyFileNameEditor Class

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

Provides an editor for selecting message body files in a MailDefinition object.

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

public class MailDefinitionBodyFileNameEditor : UrlEditor
public class MailDefinitionBodyFileNameEditor extends UrlEditor
public class MailDefinitionBodyFileNameEditor extends UrlEditor

The MailDefinitionBodyFileNameEditor class provides a user interface for selecting a file for the BodyFileName property of a MailDefinition object. The BodyFileName specifies the file that contains the e-mail message body.

The MailDefinition objects define the content and format of the e-mail notification messages that are sent by controls. For example, the CreateUserWizard, ChangePassword and PasswordRecovery controls use the MailDefinitionBodyFileNameEditor.

The MailDefinitionBodyFileNameEditor is invoked, for example, by selecting the ellipsis () button on the BodyFileName property, under MailDefinition, in the Properties grid of the visual designer.

The Caption property specifies the caption that is to appear on the MailDefinitionBodyFileNameEditor form. The Filter property returns the list of file types that is to be accepted by the MailDefinitionBodyFileNameEditor.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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