Attaches an XHTML attachment with mime-type XHtml.

Namespace:  Gallio.Framework
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.459.0)

Syntax

C#
public static TextAttachment AttachXHtml(
	string attachmentName,
	string xhtml
)
Visual Basic (Declaration)
Public Shared Function AttachXHtml ( _
	attachmentName As String, _
	xhtml 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 scope of the currently executing test step.
xhtml
Type: System..::.String
The XHTML to attach.

Return Value

The attachment.

Remarks

This is a convenience method that forwards the request to the current log writer as returned by the Writer property.

Exceptions

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

See Also