Class AllowDoctype
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 AllowDoctype : IPackageAction, IDiscoverable
Methods
View SourceAlias()
Action Alias.
Declaration
public string Alias()
Returns
Type | Description |
---|---|
System.String |
Execute(String, XElement)
Allows a documentType to be created below another documentType.
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 | Returns true on success |
Examples
View Source
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 |