Represents a Content object
InheritanceSystem.Object
Namespace: Umbraco.Cms.Core.Models Assembly: Umbraco.Core.dll Syntax[DataContract(IsReference = true)]
public class Content : ContentBase, IContent, IContentBase, IUmbracoEntity, ITreeEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors View Source Content(String, Int32, IContentType, Int32, String)
Constructor for creating a Content object
Declarationpublic Content(string name, int parentId, IContentType contentType, int userId, string culture = null)
Parameters Type Name Description System.String name
Name of the content
System.Int32 parentIdId of the Parent content
IContentType contentTypeContentType for the current Content object
System.Int32 userIdThe identifier of the user creating the Content object
System.String cultureAn optional culture.
View Source Content(String, Int32, IContentType, String)Constructor for creating a Content object
Declarationpublic Content(string name, int parentId, IContentType contentType, string culture = null)
Parameters Type Name Description System.String name
Name of the content
System.Int32 parentIdId of the Parent content
IContentType contentTypeContentType for the current Content object
System.String cultureAn optional culture.
View Source Content(String, Int32, IContentType, PropertyCollection, String)Constructor for creating a Content object
Declarationpublic Content(string name, int parentId, IContentType contentType, PropertyCollection properties, string culture = null)
Parameters Type Name Description System.String name
Name of the content
System.Int32 parentIdId of the Parent content
IContentType contentTypeContentType for the current Content object
PropertyCollection propertiesCollection of properties
System.String cultureAn optional culture.
View Source Content(String, IContent, IContentType, Int32, String)Constructor for creating a Content object
Declarationpublic Content(string name, IContent parent, IContentType contentType, int userId, string culture = null)
Parameters Type Name Description System.String name
Name of the content
IContent parentParent IContent object
IContentType contentTypeContentType for the current Content object
System.Int32 userIdThe identifier of the user creating the Content object
System.String cultureAn optional culture.
View Source Content(String, IContent, IContentType, String)Constructor for creating a Content object
Declarationpublic Content(string name, IContent parent, IContentType contentType, string culture = null)
Parameters Type Name Description System.String name
Name of the content
IContent parentParent IContent object
IContentType contentTypeContentType for the current Content object
System.String cultureAn optional culture.
View Source Content(String, IContent, IContentType, PropertyCollection, String)Constructor for creating a Content object
Declarationpublic Content(string name, IContent parent, IContentType contentType, PropertyCollection properties, string culture = null)
Parameters Type Name Description System.String name
Name of the content
IContent parentParent IContent object
IContentType contentTypeContentType for the current Content object
PropertyCollection propertiesCollection of properties
System.String cultureAn optional culture.
Properties View Source Blueprint Declaration[DataMember]
public bool Blueprint { get; set; }
Property Value Type Description System.Boolean View Source Edited Declaration
[IgnoreDataMember]
public bool Edited { get; set; }
Property Value Type Description System.Boolean View Source EditedCultures
Gets the edited cultures.
Declaration[IgnoreDataMember]
public IEnumerable<string>? EditedCultures { get; set; }
Property Value Type Description System.Nullable<IEnumerable<System.String>> View Source PublishCultureInfos
Gets the published culture infos of the content.
Declaration[IgnoreDataMember]
public ContentCultureInfosCollection PublishCultureInfos { get; set; }
Property Value View Source PublishDate
Gets the date and time the content was published.
Declaration[IgnoreDataMember]
public DateTime? PublishDate { get; set; }
Property Value Type Description System.Nullable<DateTime> View Source Published
Gets or sets a value indicating whether this content item is published or not.
Declaration[DataMember]
public bool Published { get; set; }
Property Value Type Description System.Boolean View Source PublishedCultures
Gets the published cultures.
Declaration[IgnoreDataMember]
public IEnumerable<string> PublishedCultures { get; }
Property Value Type Description IEnumerable<System.String> View Source PublishedState
Gets the published state of the content item.
Declaration[DataMember]
public PublishedState PublishedState { get; set; }
Property Value View Source PublishedVersionId Declaration
[IgnoreDataMember]
public int PublishedVersionId { get; set; }
Property Value Type Description System.Int32 View Source PublisherId
Gets the identifier of the user who published the content.
Declaration[IgnoreDataMember]
public int? PublisherId { get; set; }
Property Value Type Description System.Nullable<System.Int32> View Source PublishName
Gets the name of the published version of the content.
Declaration[IgnoreDataMember]
public string PublishName { get; set; }
Property Value Type Description System.String View Source PublishTemplateId
Gets the template id used to render the published version of the content.
Declaration[IgnoreDataMember]
public int? PublishTemplateId { get; set; }
Property Value Type Description System.Nullable<System.Int32> View Source TemplateId
Gets or sets the template used by the Content. This is used to override the default one from the ContentType.
Declaration[DataMember]
public int? TemplateId { get; set; }
Property Value Type Description System.Nullable<System.Int32> Methods View Source DeepCloneWithResetIdentities()
Creates a deep clone of the current entity with its identity and it's property identities reset
Declarationpublic IContent DeepCloneWithResetIdentities()
Returns View Source GetPublishDate(String)
Gets the date a culture was published.
Declarationpublic DateTime? GetPublishDate(string culture)
Parameters Type Name Description System.String culture Returns Type Description System.Nullable<DateTime> View Source GetPublishName(String)
Gets the name of the published version of the content for a given culture.
Declarationpublic string GetPublishName(string culture)
Parameters Type Name Description System.String culture Returns Type Description System.String View Source IsCultureEdited(String)
Gets a value indicated whether a given culture is edited.
Declarationpublic bool IsCultureEdited(string culture)
Parameters Type Name Description System.String culture Returns Type Description System.Boolean View Source IsCulturePublished(String)
Gets a value indicating whether a culture is published.
Declarationpublic bool IsCulturePublished(string culture)
Parameters Type Name Description System.String culture Returns Type Description System.Boolean View Source IsPropertyDirty(String)
Determines whether a specific property is dirty.
Declarationpublic override bool IsPropertyDirty(string propertyName)
Parameters Type Name Description System.String propertyName Returns Type Description System.Boolean View Source PerformDeepClone(Object) Declaration
protected override void PerformDeepClone(object clone)
Parameters Type Name Description System.Object clone View Source ResetDirtyProperties(Boolean) Declaration
public override void ResetDirtyProperties(bool rememberDirty)
Parameters Type Name Description System.Boolean rememberDirty View Source ResetWereDirtyProperties() Declaration
public override void ResetWereDirtyProperties()
View Source WasPropertyDirty(String)
Determines whether a specific property was dirty.
Declarationpublic override bool WasPropertyDirty(string propertyName)
Parameters Type Name Description System.String propertyName Returns Type Description System.Boolean
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