Class CompiledPackageContentBase
Compiled representation of a content base (Document or Media)
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.Packaging
Assembly: Umbraco.Core.dll
Syntax
public class CompiledPackageContentBase
Constructors
View SourceCompiledPackageContentBase()
Declaration
public CompiledPackageContentBase()
Properties
View SourceImportMode
Gets or sets the import mode for the content.
Declaration
public string? ImportMode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
XmlData
The serialized version of the content
Declaration
public XElement XmlData { get; set; }
Property Value
| Type | Description |
|---|---|
| XElement |
Methods
View SourceCreate(XElement)
Creates a new CompiledPackageContentBase from an XML element.
Declaration
public static CompiledPackageContentBase Create(XElement xml)
Parameters
| Type | Name | Description |
|---|---|---|
| XElement | xml | The XML element containing the content data. |
Returns
| Type | Description |
|---|---|
| CompiledPackageContentBase | A new compiled package content base instance. |