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

Operations related to creating new items and first checking to see if the item already exists
Inheritance: ICreateItem
Afficher le fichier Open project: Velir/Sitecore-Commons Class Usage Examples

Méthodes publiques

Méthode Description
CreateChild ( ) : ID

Creates the child.

CreateItem ( ID parentId, string cleanName, ID templateId, string dbName ) : System.Linq
CreateItem ( ID parentId, string cleanName, ID templateId, string dbName, Language language ) : System.Linq
GetChild ( ) : ID

Gets the child.

The algorithm is important for performs a) first get the parent item b) then check its children to see if the proposed item exists we don't want to look for the proposed item by path because it is slow if not found

Method Details

CreateChild() public méthode

Creates the child.
public CreateChild ( ) : ID
Résultat ID

CreateItem() public méthode

public CreateItem ( ID parentId, string cleanName, ID templateId, string dbName ) : System.Linq
parentId ID
cleanName string
templateId ID
dbName string
Résultat System.Linq

CreateItem() public méthode

public CreateItem ( ID parentId, string cleanName, ID templateId, string dbName, Language language ) : System.Linq
parentId ID
cleanName string
templateId ID
dbName string
language Language
Résultat System.Linq

GetChild() public méthode

Gets the child.
The algorithm is important for performs a) first get the parent item b) then check its children to see if the proposed item exists we don't want to look for the proposed item by path because it is slow if not found
public GetChild ( ) : ID
Résultat ID