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 _
)
public void DeleteTag (
    bool keepEndTag
)
public:
void DeleteTag (
    bool keepEndTag
)
public void DeleteTag (
    boolean keepEndTag
)
public function DeleteTag (
    keepEndTag : boolean
)

Parameters

  • keepEndTag
    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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003