C# Class Umbraco.VisualStudio.Packaging

Temporary class to enable serialization and deserialization of nodes. Will only be used untill the PackagingService in Umbraco is stable/complete.
Mostrar archivo Open project: umbraco/Visual-Studio-Extension Class Usage Examples

Public Methods

Method Description
Export ( IContentType contentType ) : System.Xml.Linq.XElement

Exports an IContentType to xml as an XElement

Packaging ( Umbraco.Core.Services.ServiceContext serviceContext ) : System

Private Methods

Method Description
AddChildXml ( IContent originalDescendants, IEnumerable currentChildren, System.Xml.Linq.XElement currentXml ) : void

Used by Content Export to recursively add children

AddChildXml ( IMedia originalDescendants, IEnumerable currentChildren, System.Xml.Linq.XElement currentXml ) : void

Used by Media Export to recursively add children

Export ( IContent content, bool deep = false ) : System.Xml.Linq.XElement

Exports an IContent item to xml as an XElement

Export ( IContentBase contentBase, string nodeName ) : System.Xml.Linq.XElement

Part of the export of IContent and IMedia which is shared

Export ( IDataTypeDefinition dataTypeDefinition ) : System.Xml.Linq.XElement
Export ( IMedia media, bool deep = false ) : System.Xml.Linq.XElement

Exports an IMedia item to xml as an XElement

Export ( IMediaType mediaType ) : System.Xml.Linq.XElement

Exports an IMediaType to xml as an XElement

ExportToFile ( string absoluteFilePath, string nodeType, int id ) : void

Method Details

Export() public method

Exports an IContentType to xml as an XElement
public Export ( IContentType contentType ) : System.Xml.Linq.XElement
contentType IContentType ContentType to export
return System.Xml.Linq.XElement

Packaging() public method

public Packaging ( Umbraco.Core.Services.ServiceContext serviceContext ) : System
serviceContext Umbraco.Core.Services.ServiceContext
return System