ZennoLab Assemblies Documentation
IContext Interface
Members  Example 
Represents a collection of shared objects that can be accessed by name.
Object Model
IContext Interface
Syntax
public interface IContext 
Remarks
This interface can be used in action OwnCode (C# or PHP) of ProjectMaker.
Example
The following example uses property Context of "project" for getting and setting value to context.
// get local variable
object o = project.Context["ObjectName"];
 
// check existing object
if(o == null)
{
    // set value
    project.Context["ObjectName"] = "this is new object";
}
 
// return new value
return project.Context["ObjectName"];
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IContext Members
ZennoLab.InterfacesLibrary.ProjectModel.Collections Namespace
IZennoPosterProjectModel.Context Property

Send Feedback