Class ContentMessageActivity
A message saved in the activity log that is related to a content instance.
Inherited Members
Namespace: EPiServer.DataAbstraction.Activities
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ContentMessageActivity : MessageActivityConstructors
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
ContentLink
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.
