ReplaceUriWithCidHandler Delegate
Defines the signature of a method supplied by the application in order to decide whether a particular URI in the HTML being imported must be replaced with a CID and the corresponding resource be attached to the message.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public delegate bool ReplaceUriWithCidHandler(
	string uri
)

Parameters

uri
Type: SystemString
The URL of the resource referenced in the HTML being imported.

Return Value

Type: Boolean
Must return true in order to replace this URL with the auto-generated CID and attach the correponding resource to the message.
Remarks

The purpose of this delegate is to let the application precisely control which links to the related resources must be left as-is in the HTML being imported (such as when using LoadBodyText(String, MessageBodyType, Encoding, ImportBodyOptions) or ImportRelatedFiles(ImportRelatedFilesOptions) methods). By default, all such resources are imported and attached to the message.

To set this delegate, use OnReplaceUriWithCid property.

See Also