Class ContentTypeSort
Represents a POCO for setting sort order on a ContentType reference
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public class ContentTypeSort : IValueObject, IDeepCloneable
Constructors
ContentTypeSort()
Declaration
[Obsolete("This parameterless constructor should never be used")]
public ContentTypeSort()
ContentTypeSort(Int32, Int32)
Initializes a new instance of the System.Object class.
Declaration
public ContentTypeSort(int id, int sortOrder)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Int32 |
sortOrder |
|
ContentTypeSort(Lazy<Int32>, Int32, String)
Declaration
public ContentTypeSort(Lazy<int> id, int sortOrder, string alias)
Parameters
Type |
Name |
Description |
System.Lazy<System.Int32> |
id |
|
System.Int32 |
sortOrder |
|
System.String |
alias |
|
Properties
Alias
Gets or sets the Alias of the ContentType
Declaration
public string Alias { get; set; }
Property Value
Type |
Description |
System.String |
|
Id
Gets or sets the Id of the ContentType
Declaration
public Lazy<int> Id { get; set; }
Property Value
Type |
Description |
System.Lazy<System.Int32> |
|
SortOrder
Gets or sets the Sort Order of the ContentType
Declaration
public int SortOrder { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
DeepClone()
Declaration
public object DeepClone()
Returns
Type |
Description |
System.Object |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(ContentTypeSort)
Declaration
protected bool Equals(ContentTypeSort other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|