System.Web.UI.WebControls.EmbeddedMailObject.Name Property

Gets or sets the name that is used as the identifier of the item to be embedded in a mail message constructed with the System.Web.UI.WebControls.MailDefinition class.

Syntax

[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.NotifyParentProperty(true)]
public string Name { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The EmbeddedMailObject.Name property specifies an identifier for an item to embed in a mail message constructed declaratively with the System.Web.UI.WebControls.MailDefinition class. The identifier is used to map the item contained in the EmbeddedMailObject.Path property to its appropriate location in the body of the file specified in the MailDefinition.BodyFileName property, using the following syntax:

Example

<img src="cid:identifier" alt="Alternate Text" />

Typically, the item is an image file. The default for the EmbeddedMailObject.Name property is an empty string.

It is a best practice for accessibility design to set the alternate text property in your mail message for any embedded images.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0