Class PublishRootDocument
This class implements the IPackageAction Interface, used to execute code when packages are installed. All IPackageActions only takes a PackageName and a XmlNode as input, and executes based on the data in the xmlnode.
Inheritance
System.Object
Namespace: Umbraco.Core.PackageActions
Assembly: Umbraco.Core.dll
Syntax
public class PublishRootDocument : IPackageAction, IDiscoverable
Methods
View SourceAlias()
Action alias
Declaration
public string Alias()
Returns
Type | Description |
---|---|
System.String |
Execute(String, XElement)
Executes the specified package action.
Declaration
public bool Execute(string packageName, XElement xmlData)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | Name of the package. |
System.Xml.Linq.XElement | xmlData | The XML data. |
Returns
Type | Description |
---|---|
System.Boolean | True if executed succesfully |
Examples
Undo(String, XElement)
This action has no undo.
Declaration
public bool Undo(string packageName, XElement xmlData)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | Name of the package. |
System.Xml.Linq.XElement | xmlData | The XML data. |
Returns
Type | Description |
---|---|
System.Boolean |