Provides a base class for content items.
Namespace: Umbraco.Cms.Core.Models Assembly: Umbraco.Core.dll Syntaxpublic interface IContentBase : IUmbracoEntity, ITreeEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Properties View Source AvailableCultures
Gets the available cultures.
DeclarationIEnumerable<string> AvailableCultures { get; }
Property Value Type Description IEnumerable<System.String> View Source ContentType
Gets the content type of this content.
DeclarationISimpleContentType ContentType { get; }
Property Value View Source ContentTypeId
Integer Id of the default ContentType
Declarationint ContentTypeId { get; }
Property Value Type Description System.Int32 View Source CultureInfos
Gets culture infos of the content item.
DeclarationContentCultureInfosCollection CultureInfos { get; set; }
Property Value View Source Properties
List of properties, which make up all the data available for this Content object
DeclarationIPropertyCollection Properties { get; set; }
Property Value View Source VersionId
Gets the version identifier.
Declarationint VersionId { get; set; }
Property Value Type Description System.Int32 View Source WriterId
Gets the identifier of the writer.
Declarationint WriterId { get; set; }
Property Value Type Description System.Int32 Methods View Source GetCultureName(String)
Gets the name of the content item for a specified language.
Declarationstring GetCultureName(string culture)
Parameters Type Name Description System.String culture Returns Type Description System.String View Source GetUpdateDate(String)
Gets the date a culture was updated.
DeclarationDateTime? GetUpdateDate(string culture)
Parameters Type Name Description System.String culture Returns Type Description System.Nullable<DateTime> View Source GetValue(String, String, String, Boolean)
Gets the value of a Property
Declarationobject GetValue(string propertyTypeAlias, string culture = null, string segment = null, bool published = false)
Parameters Type Name Description System.String propertyTypeAlias System.String culture System.String segment System.Boolean published Returns Type Description System.Object View Source GetValue<TValue>(String, String, String, Boolean)
Gets the typed value of a Property
DeclarationTValue GetValue<TValue>(string propertyTypeAlias, string culture = null, string segment = null, bool published = false)
Parameters Type Name Description System.String propertyTypeAlias System.String culture System.String segment System.Boolean published Returns Type Parameters View Source HasProperty(String)
Gets a value indicating whether the content entity has a property with the supplied alias.
Declarationbool HasProperty(string propertyTypeAlias)
Parameters Type Name Description System.String propertyTypeAlias Returns Type Description System.Boolean View Source IsCultureAvailable(String)
Gets a value indicating whether a given culture is available.
Declarationbool IsCultureAvailable(string culture)
Parameters Type Name Description System.String culture Returns Type Description System.Boolean View Source RemoveValue(String)
Removes a Property value.
Declarationvoid RemoveValue(string propertyTypeAlias)
Parameters Type Name Description System.String propertyTypeAlias
The alias of the property value to remove.
View Source SetCultureName(String, String)Sets the name of the content item for a specified culture.
Declarationvoid SetCultureName(string value, string culture)
Parameters Type Name Description System.String value System.String culture View Source SetValue(String, Object, String, String)
Sets the (edited) value of a Property
Declarationvoid SetValue(string propertyTypeAlias, object value, string culture = null, string segment = null)
Parameters Type Name Description System.String propertyTypeAlias System.Object value System.String culture System.String segment
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4