C# Class Sitecore.SharedSource.Commons.Utilities.SerializationUtil

Utility methods for serializing Sitecore objects to disk
Datei anzeigen Open project: Velir/Sitecore-Commons

Public Methods

Method Description
SerializeItem ( string folderPath, string itemGuid, Database db ) : void

Serializes a single item to a file on disk.

SerializeItemList ( string folderPath, List items ) : void

Serializes a list of items to disk.

SerializeItemsOfTemplate ( string folderPath, string rootGuid, string templateName, Database db ) : void

Serializes the items of a specified template recursively from the passed in root down to a file on disk.

Method Details

SerializeItem() public static method

Serializes a single item to a file on disk.
public static SerializeItem ( string folderPath, string itemGuid, Database db ) : void
folderPath string The folder path where the serialized item will be written to.
itemGuid string The item GUID.
db Database The db.
return void

SerializeItemList() public static method

Serializes a list of items to disk.
public static SerializeItemList ( string folderPath, List items ) : void
folderPath string The folder path where the serialized items will be written to.
items List The items.
return void

SerializeItemsOfTemplate() public static method

Serializes the items of a specified template recursively from the passed in root down to a file on disk.
public static SerializeItemsOfTemplate ( string folderPath, string rootGuid, string templateName, Database db ) : void
folderPath string The folder path where the serialized items will be written to.
rootGuid string The root GUID.
templateName string Name of the template.
db Database The db.
return void