C# Class Sitecore.FakeDb.DbItem

Inheritance: IEnumerable
Afficher le fichier Open project: sergeyshushlyapin/Sitecore.FakeDb Class Usage Examples

Méthodes publiques

Méthode Description
Add ( DbField field ) : void

Adds a new DbField to the item.

Add ( DbItem child ) : void

Adds a child DbItem to the item.

Add ( ID fieldId, string fieldValue ) : void

Adds a new field to the item.

Add ( string fieldName, string fieldValue ) : void

Adds a new field to the item.

AddVersion ( string language ) : void

Adds a new version to the item in specific language.

AddVersion ( string language, int currentVersion ) : void

Adds a new version to the item in specific language.

DbItem ( string name ) : System

Initializes a new instance of the DbItem class.

DbItem ( string name, ID id ) : System

Initializes a new instance of the DbItem class.

DbItem ( string name, ID id, ID templateId ) : System

Initializes a new instance of the DbItem class.

GetVersionCount ( string language ) : int

Gets the item versions count.

RemoveVersion ( string language ) : bool

Removes the item version.

RemoveVersion ( string language, int version ) : bool

Removes the item version.

Private Methods

Méthode Description
IEnumerable ( ) : IEnumerator

Method Details

Add() public méthode

Adds a new DbField to the item.
public Add ( DbField field ) : void
field DbField The field.
Résultat void

Add() public méthode

Adds a child DbItem to the item.
public Add ( DbItem child ) : void
child DbItem The child item.
Résultat void

Add() public méthode

Adds a new field to the item.
public Add ( ID fieldId, string fieldValue ) : void
fieldId ID The field id.
fieldValue string The field value.
Résultat void

Add() public méthode

Adds a new field to the item.
public Add ( string fieldName, string fieldValue ) : void
fieldName string The field name.
fieldValue string The field value.
Résultat void

AddVersion() public méthode

Adds a new version to the item in specific language.
public AddVersion ( string language ) : void
language string The language.
Résultat void

AddVersion() public méthode

Adds a new version to the item in specific language.
public AddVersion ( string language, int currentVersion ) : void
language string The language.
currentVersion int The current varsion.
Résultat void

DbItem() public méthode

Initializes a new instance of the DbItem class.
public DbItem ( string name ) : System
name string The item name.
Résultat System

DbItem() public méthode

Initializes a new instance of the DbItem class.
public DbItem ( string name, ID id ) : System
name string The item name.
id ID The item id.
Résultat System

DbItem() public méthode

Initializes a new instance of the DbItem class.
public DbItem ( string name, ID id, ID templateId ) : System
name string The item name.
id ID The item id.
templateId ID The template id.
Résultat System

GetVersionCount() public méthode

Gets the item versions count.
public GetVersionCount ( string language ) : int
language string The language.
Résultat int

RemoveVersion() public méthode

Removes the item version.
public RemoveVersion ( string language ) : bool
language string The language.
Résultat bool

RemoveVersion() public méthode

Removes the item version.
public RemoveVersion ( string language, int version ) : bool
language string The language.
version int The version number.
Résultat bool