SaaS CMS has officially launched! Learn more now.

Class ContentMessageActivity

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. 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: 8.11.0
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)

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

Properties

A reference to the content that the message is related to.

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

Language

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

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

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

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

Extension Methods