Class ItemViewModelExtensions
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
Extension methods for Item
- Inheritance
-
Item
View Model Extensions
- Inherited Members
Methods
RequireItem(ItemViewModel?, string?)
Ensures that the specified Item
Parameters
item
ItemView Model The Item
View to check.Model parameterName
stringThe name of the parameter that is being checked. This is automatically provided by the compiler.
Returns
- Item
View Model The original Item
View if it is not null.Model
Examples
Model.Item.RequireItem();
Exceptions
- Argument
Null Exception Thrown when the
item
is null.