Bewerken

Delen via


EmbeddedMailObject.Name Property

Definition

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

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String

Property Value

Returns the identifier of the item to embed in a mail message.

Remarks

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

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

Typically, the item is an image file. The default for the 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.

Applies to

See also