November Happy Hour will be moved to Thursday December 5th.

Class ContentTypeDifference

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Represents the difference between two versions of a content type

Inheritance
System.Object
ContentTypeDifference
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class ContentTypeDifference : Object

Constructors

ContentTypeDifference(VersionComponent, String)

Declaration
public ContentTypeDifference(VersionComponent versionComponent, string reason)
Parameters
Type Name Description
VersionComponent versionComponent

The version component that indicates the level of difference between the two content types.

System.String reason

The reason for the difference that this instance represents.

Fields

Empty

An empty instance of ContentTypeDifference that indicates that there is no difference between the content types that was compared.

Declaration
public static ContentTypeDifference Empty
Field Value
Type Description
ContentTypeDifference

Properties

IsValid

Gets a value indicating if the difference between the two content types is a valid change.

Declaration
public bool IsValid { get; }
Property Value
Type Description
System.Boolean

Reason

Gets the reason for the difference that this instance represents.

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

VersionComponent

Gets a value that's indicating the level of difference between the two content types.

Declaration
public VersionComponent VersionComponent { get; }
Property Value
Type Description
VersionComponent

Methods

Invalid(String)

Creates a new ContentTypeDifference instance that represents an invalid difference.

Declaration
public static ContentTypeDifference Invalid(string reason)
Parameters
Type Name Description
System.String reason

The reason for the invalid difference that this instance represents.

Returns
Type Description
ContentTypeDifference

A new ContentTypeDifference instance.

Extension Methods