Embeds an HTML attachment with mime-type Html.

Namespace:  Gallio.Common.Markup
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public TextAttachment EmbedHtml(
	string attachmentName,
	string html
)
Visual Basic (Declaration)
Public Function EmbedHtml ( _
	attachmentName As String, _
	html As String _
) As TextAttachment

Parameters

attachmentName
Type: System..::.String
The name of the attachment to create or null to automatically assign one. The attachment name must be unique within the document.
html
Type: System..::.String
The HTML to attach.

Return Value

The attachment.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if html is null.
System..::.InvalidOperationExceptionThrown if there is already an attachment with the same name.

See Also