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
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ContentTypeDifference : Object
Constructors
ContentTypeDifference(VersionComponent, String)
Declaration
public ContentTypeDifference(VersionComponent versionComponent, string reason)
Parameters
Type | Name | Description |
---|---|---|
Version |
versionComponent | The version component that indicates the level of difference between the two content types. |
System. |
reason | The reason for the difference that this instance represents. |
Fields
Empty
An empty instance of Content
Declaration
public static ContentTypeDifference Empty
Field Value
Type | Description |
---|---|
Content |
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. |
Reason
Gets the reason for the difference that this instance represents.
Declaration
public string Reason { get; }
Property Value
Type | Description |
---|---|
System. |
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 |
---|---|
Version |
Methods
Invalid(String)
Creates a new Content
Declaration
public static ContentTypeDifference Invalid(string reason)
Parameters
Type | Name | Description |
---|---|---|
System. |
reason | The reason for the invalid difference that this instance represents. |
Returns
Type | Description |
---|---|
Content |
A new Content |