Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class CacheChangedEventArgs

Arguments used for CacheChanged

Inheritance
System.Object
CacheChangedEventArgs
Namespace: EPiServer.Data.Cache
Assembly: EPiServer.Data.dll
Version: 12.0.3
Syntax
public class CacheChangedEventArgs : EventArgs

Constructors

CacheChangedEventArgs()

Initializes a new instance of the CacheChangedEventArgs class.

Declaration
public CacheChangedEventArgs()

CacheChangedEventArgs(TypeOfEventAction, ICollection<String>)

Initializes a new instance of the CacheChangedEventArgs class.

Declaration
public CacheChangedEventArgs(TypeOfEventAction typeOfEventAction, ICollection<string> items)
Parameters
Type Name Description
TypeOfEventAction typeOfEventAction

The type of event action.

System.Collections.Generic.ICollection<System.String> items

The items related to the action

Properties

ItemsToProcess

Gets or sets the items to process

Declaration
public string[] ItemsToProcess { get; set; }
Property Value
Type Description
System.String[]

The item to process.

TypeOfEventAction

Gets or sets the type of event action.

Declaration
public TypeOfEventAction TypeOfEventAction { get; set; }
Property Value
Type Description
TypeOfEventAction

The type of event action.

Methods

Deserialize(String)

Deserializes a string to CacheChangedEventArgs

Declaration
public static CacheChangedEventArgs Deserialize(string data)
Parameters
Type Name Description
System.String data

The string to deserialize

Returns
Type Description
CacheChangedEventArgs

A deserialized item

Serialize(CacheChangedEventArgs)

Serializes a CacheChangedEventArgs

Declaration
public static string Serialize(CacheChangedEventArgs item)
Parameters
Type Name Description
CacheChangedEventArgs item

The item to serialize

Returns
Type Description
System.String

A serialized item

Extension Methods