View Source
Class SimpleContentType
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class SimpleContentType : ISimpleContentType, IUmbracoEntity, ITreeEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
View Source
SimpleContentType(IContentType)
Declaration
public SimpleContentType(IContentType contentType)
Parameters
View Source
SimpleContentType(IMediaType)
Declaration
public SimpleContentType(IMediaType mediaType)
Parameters
View Source
SimpleContentType(IMemberType)
Declaration
public SimpleContentType(IMemberType memberType)
Parameters
Properties
View Source
Alias
Gets the alias of the content type.
Declaration
public string Alias { get; }
Property Value
Type |
Description |
System.String |
|
View Source
AllowedAsRoot
Gets a value indicating whether content of that type can be created at the root of the tree.
Declaration
public bool AllowedAsRoot { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
DefaultTemplate
Gets the default template of the content type.
Declaration
public ITemplate DefaultTemplate { get; }
Property Value
View Source
Icon
Gets the icon of the content type.
Declaration
public string Icon { get; }
Property Value
Type |
Description |
System.String |
|
View Source
Id
Declaration
Property Value
Type |
Description |
System.Int32 |
|
View Source
IsContainer
Gets a value indicating whether the content type is a container.
Declaration
public bool IsContainer { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
IsElement
Gets a value indicating whether the content type is an element content type.
Declaration
public bool IsElement { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
Key
Declaration
Property Value
Type |
Description |
System.Guid |
|
View Source
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
View Source
Variations
Gets the content variation of the content type.
Declaration
public ContentVariation Variations { get; }
Property Value
Methods
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Equals(SimpleContentType)
Declaration
protected bool Equals(SimpleContentType other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
View Source
SupportsPropertyVariation(String, String, Boolean)
Validates that a combination of culture and segment is valid for the content type properties.
Declaration
public bool SupportsPropertyVariation(string culture, string segment, bool wildcards = false)
Parameters
Type |
Name |
Description |
System.String |
culture |
The culture.
|
System.String |
segment |
The segment.
|
System.Boolean |
wildcards |
A value indicating whether wildcard are supported.
|
Returns
Type |
Description |
System.Boolean |
True if the combination is valid; otherwise false.
|
Explicit Interface Implementations
View Source
ICanBeDirty.GetDirtyProperties()
Declaration
IEnumerable<string> ICanBeDirty.GetDirtyProperties()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
View Source
ICanBeDirty.IsDirty()
Declaration
bool ICanBeDirty.IsDirty()
Returns
Type |
Description |
System.Boolean |
|
View Source
ICanBeDirty.IsPropertyDirty(String)
Declaration
bool ICanBeDirty.IsPropertyDirty(string propName)
Parameters
Type |
Name |
Description |
System.String |
propName |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
ICanBeDirty.ResetDirtyProperties()
Declaration
void ICanBeDirty.ResetDirtyProperties()
View Source
IEntity.CreateDate
Declaration
DateTime IEntity.CreateDate { get; set; }
Returns
Type |
Description |
System.DateTime |
|
View Source
IEntity.DeleteDate
Declaration
DateTime? IEntity.DeleteDate { get; set; }
Returns
Type |
Description |
System.Nullable<System.DateTime> |
|
View Source
IEntity.HasIdentity
Declaration
bool IEntity.HasIdentity { get; }
Returns
Type |
Description |
System.Boolean |
|
View Source
IEntity.Id
Declaration
int IEntity.Id { get; set; }
Returns
Type |
Description |
System.Int32 |
|
View Source
IEntity.Key
Declaration
Guid IEntity.Key { get; set; }
Returns
Type |
Description |
System.Guid |
|
View Source
IEntity.UpdateDate
Declaration
DateTime IEntity.UpdateDate { get; set; }
Returns
Type |
Description |
System.DateTime |
|
View Source
IRememberBeingDirty.GetWereDirtyProperties()
Declaration
IEnumerable<string> IRememberBeingDirty.GetWereDirtyProperties()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
View Source
IRememberBeingDirty.ResetDirtyProperties(Boolean)
Declaration
void IRememberBeingDirty.ResetDirtyProperties(bool rememberDirty)
Parameters
Type |
Name |
Description |
System.Boolean |
rememberDirty |
|
View Source
IRememberBeingDirty.ResetWereDirtyProperties()
Declaration
void IRememberBeingDirty.ResetWereDirtyProperties()
View Source
IRememberBeingDirty.WasDirty()
Declaration
bool IRememberBeingDirty.WasDirty()
Returns
Type |
Description |
System.Boolean |
|
View Source
IRememberBeingDirty.WasPropertyDirty(String)
Declaration
bool IRememberBeingDirty.WasPropertyDirty(string propertyName)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
ITreeEntity.CreatorId
Declaration
int ITreeEntity.CreatorId { get; set; }
Returns
Type |
Description |
System.Int32 |
|
View Source
ITreeEntity.Level
Declaration
int ITreeEntity.Level { get; set; }
Returns
Type |
Description |
System.Int32 |
|
View Source
ITreeEntity.Name
Declaration
string ITreeEntity.Name { get; set; }
Returns
Type |
Description |
System.String |
|
View Source
ITreeEntity.ParentId
Declaration
int ITreeEntity.ParentId { get; set; }
Returns
Type |
Description |
System.Int32 |
|
View Source
ITreeEntity.Path
Declaration
string ITreeEntity.Path { get; set; }
Returns
Type |
Description |
System.String |
|
View Source
ITreeEntity.SetParent(ITreeEntity)
Declaration
void ITreeEntity.SetParent(ITreeEntity parent)
Parameters
View Source
ITreeEntity.SortOrder
Declaration
int ITreeEntity.SortOrder { get; set; }
Returns
Type |
Description |
System.Int32 |
|
View Source
ITreeEntity.Trashed
Declaration
bool ITreeEntity.Trashed { get; }
Returns
Type |
Description |
System.Boolean |
|
View Source
IDeepCloneable.DeepClone()
Declaration
object IDeepCloneable.DeepClone()
Returns
Type |
Description |
System.Object |
|