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

Class ContentTypeChange

Contains information about name chages for a specific content type and its properties.

Inheritance
System.Object
ContentTypeChange
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.Migration
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
public class ContentTypeChange

Constructors

ContentTypeChange(String)

Initializes a new instance of the ContentTypeChange class.

Declaration
public ContentTypeChange(string contentTypeName)
Parameters
Type Name Description
System.String contentTypeName

Name of the content type.

Properties

Name

Gets the name of the content type.

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

OldName

Gets the old name if the content type has changed its name.

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

PropertyChanges

Gets the property changes.

Declaration
public virtual IEnumerable<PropertyChange> PropertyChanges { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<PropertyChange>

Methods

Property(String)

Registers a new property change for this content type.

Declaration
public virtual PropertyChange Property(string propertyName)
Parameters
Type Name Description
System.String propertyName

Name of the property.

Returns
Type Description
PropertyChange

The created property change.

UsedToBeNamed(String)

Specifies what the content type used to be named.

Declaration
public void UsedToBeNamed(string oldName)
Parameters
Type Name Description
System.String oldName

The old name.

Extension Methods