SaaS CMS has officially launched! Learn more now.

Class ContentMessageActivity

A message saved in the activity log that is related to a content instance.

Inheritance
System.Object
ContentMessageActivity
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.DataAbstraction.Activities
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class ContentMessageActivity : MessageActivity

Constructors

ContentMessageActivity(ContentReference, CultureInfo, String)

Initializes a new instance of the ContentMessageActivity class.

Declaration
public ContentMessageActivity(ContentReference contentLink, CultureInfo language, string message)
Parameters
Type Name Description
ContentReference contentLink

A reference to the content that this message relates to

System.Globalization.CultureInfo language

The language version of the content that this message relates to.

System.String message

The message.

ContentMessageActivity(ContentReference, CultureInfo, String, String)

Creates a new instance of ContentActivityMessage

Declaration
public ContentMessageActivity(ContentReference contentLink, CultureInfo language, string message, string property)
Parameters
Type Name Description
ContentReference contentLink

A reference to the content that this message relates to

System.Globalization.CultureInfo language

The language version of the content that this message relates to.

System.String message

The message.

System.String property

The property that this message is related to.

ContentMessageActivity(ContentReference, String)

Initializes a new instance of the ContentMessageActivity class.

Declaration
public ContentMessageActivity(ContentReference contentLink, string message)
Parameters
Type Name Description
ContentReference contentLink

A reference to the content which the message relates to

System.String message

The message.

ContentMessageActivity(ContentReference, String, String)

Initializes a new instance of the ContentMessageActivity class.

Declaration
public ContentMessageActivity(ContentReference contentLink, string message, string property)
Parameters
Type Name Description
ContentReference contentLink

A reference to the content that this message relates to

System.String message

The message.

System.String property

The property that this message is related to.

Properties

Gets a reference to the content that the message is related to.

Declaration
public ContentReference ContentLink { get; }
Property Value
Type Description
ContentReference

Language

Gets the language version for the content for which the message relates to.

Declaration
public CultureInfo Language { get; }
Property Value
Type Description
System.Globalization.CultureInfo
Remarks

This property will return System.Globalization.CultureInfo.InvariantCulture if this message isn't related to any specific language version.

Property

Gets the name of the content instance property which the message relates to.

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

This is null if the message is not related to a specific property.

Extension Methods