Class SimpleActivityLog

Simple logger class that exports and imports its data as xml. Useful for low intensity logging of user activity that needs to be stored as a string.

Inheritance
System.Object
SimpleActivityLog
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Util
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[Obsolete("The old workflow system have been removed as of CMS 9")]
public class SimpleActivityLog

Constructors

SimpleActivityLog()

Initializes a new instance of the SimpleActivityLog class.

Declaration
public SimpleActivityLog()

SimpleActivityLog(String)

Initializes a new instance of the SimpleActivityLog class.

Declaration
public SimpleActivityLog(string xml)
Parameters
Type Name Description
System.String xml

XML that will be parsed into an activity log

Properties

DataSet

Internal data as a DataSet

Declaration
public DataSet DataSet { get; }
Property Value
Type Description
System.Data.DataSet

SortedView

Internal data as a DataSet

Declaration
public DataView SortedView { get; }
Property Value
Type Description
System.Data.DataView

Xml

Internal data as Xml

Declaration
public string Xml { get; }
Property Value
Type Description
System.String

Methods

Add(Int32, String)

Add a log made by a currently logged in user

Declaration
public void Add(int type, string text)
Parameters
Type Name Description
System.Int32 type

Type of comment, may be any custom value

System.String text

The text or information entered by the user

Add(String, Int32, String)

Add a log made by custom origin

Declaration
public void Add(string name, int type, string text)
Parameters
Type Name Description
System.String name

The display name of the origin of this action

System.Int32 type

Type of comment, may be any custom value

System.String text

The text or information entered by the user

Merge(SimpleActivityLog)

Merge values for another log

Declaration
public void Merge(SimpleActivityLog baseLog)
Parameters
Type Name Description
SimpleActivityLog baseLog

The rows to merge

Extension Methods