Share via


HtmlTagContext.DeleteTag Method (Boolean)

The DeleteTag method suppresses the output of the tag that caused the callback to the HtmlTagCallback delegate from the output of the conversion and allows you to control whether output of the end tag is also suppressed.

Namespace:  Microsoft.Exchange.Data.TextConverters
Assembly:  Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)

Syntax

'Declaration
Public Sub DeleteTag ( _
    keepEndTag As Boolean _
)
'Usage
Dim instance As HtmlTagContext
Dim keepEndTag As Boolean

instance.DeleteTag(keepEndTag)
public void DeleteTag(
    bool keepEndTag
)

Parameters

  • keepEndTag
    Type: System.Boolean
    Set this parameter to true to preserve the end tag. Set this parameter to false to suppress the output of both the start tag and the end tag.

Remarks

You can also suppress the output of a tag by simply not calling any of the WriteTag method overloads for it. However, in that case the corresponding end tag is not deleted and is therefore equivalent to calling DeleteTag and passing a value of true.