Table of Contents

Method CreateLogItemForException

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CreateLogItemForException(Exception, LogItemKind, bool)

Creates a TreeViewItem for logging an exception.

public static TreeViewItem CreateLogItemForException(Exception e, LogItemKind kind = LogItemKind.Error, bool allowReplace = false)

Parameters

e Exception

The exception to log.

kind LogItemKind

The kind of log item. Default is Error.

allowReplace bool

Indicates whether replacing the last log item with the same text is allowed. Currently not implemented.

Returns

TreeViewItem

A TreeViewItem representing the logged exception.