IContext
Assembly: ZennoLab.InterfacesLibrary
Full name: ZennoLab.InterfacesLibrary.ProjectModel.Collections.IContext
Represents a collection of shared objects that can be accessed by name.
This interface can be used in action OwnCode (C# or PHP) of ProjectMaker.
Properties
Item
Property
Get or set the shared object by the specified name.
Parameters
| Параметр | Описание |
|---|---|
name | The name of object. |
Example
object o = project.Context["ObjectName"];Keys
Property
Get the keys list of context items.
Methods
Add
Method
Add new object to a context.
Parameters
| Параметр | Описание |
|---|---|
name | The name of the object. |
value | Object. Prosto kuhat hochetca |
Delete
Method
Delete existing object from a context.
Parameters
| Параметр | Описание |
|---|---|
name | The name of the object. |
Clear
Method
Delete all existing objects.