Class ItemEditContext
- Namespace
- Dynamicweb.Content.Items.Rendering
- Assembly
- Dynamicweb.dll
Use this object inside a Using statement to setup item editing context.
public class ItemEditContext : IDisposable
- Inheritance
-
ItemEditContext
- Implements
- Inherited Members
Examples
Constructors
ItemEditContext(int)
Initializes a new instance of the ItemEditContext class.
public ItemEditContext(int pageId)
Parameters
pageId
int
ItemEditContext(int, int)
Initializes a new instance of the ItemEditContext class.
public ItemEditContext(int pageId, int areaId)
Parameters
Properties
AreaId
Gets the area id.
public int AreaId { get; set; }
Property Value
- int
- The area id.
Current
Gets the current instance of the Item rendering context.
public static ItemEditContext Current { get; }
Property Value
- ItemEditContext
- The current.
PageId
Gets the page id.
public int PageId { get; set; }
Property Value
- int
- The pagee id.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)
Parameters
disposing
booltrue
to release both managed and unmanaged resources;false
to release only unmanaged resources.