Class ItemContext
- Namespace
- Dynamicweb.Content.Items
- Assembly
- Dynamicweb.dll
public sealed class ItemContext : IDisposable
- Inheritance
-
ItemContext
- Implements
- Inherited Members
Constructors
ItemContext(Entity<int>)
public ItemContext(Entity<int> context)
Parameters
ItemContext(DbObject)
Creates an items context instance
public ItemContext(DbObject context)
Parameters
context
DbObjectItem based object
Fields
Id
public readonly int Id
Field Value
IsPageProperty
public bool IsPageProperty
Field Value
SynchronizePages
public bool SynchronizePages
Field Value
Type
public readonly Type Type
Field Value
Properties
Current
Gets the current instance of the Item rendering context.
public static ItemContext Current { get; }
Property Value
- ItemContext
The current.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
IsContext(Entity<int>)
Determines whether the specified object is context.
public bool IsContext(Entity<int> obj)
Parameters
Returns
- bool
True/False
IsContext(DbObject)
Determines whether the specified object is context.
public bool IsContext(DbObject obj)
Parameters
obj
DbObjectInstance of item based type.
Returns
- bool
True/False