ZennoLab Assemblies Documentation
Instance Class
Members  Example 
ZennoLab.CommandCenter Namespace : Instance Class
Represents a browser's window of ZennoPoster
Object Model
Instance ClassTab ClassTab ClassAudioPreferences ClassTab ClassWebGLPreferences Class
Syntax
public class Instance : System.MarshalByRefObject 
Remarks
The Instance class contain the properties such as ErrorDetected and IsVoid. Their use necessary for the correct work of your code.
Example

The following example creates an Instance object and shows the uses of the object Tab class.

using System;
using ZennoLab.CommandCenter;
 
namespace Sample
{
    internal class Example
    {
        public static int Execute()
        {
            // create a new Instance object
            Instance instance = new Instance("127.0.0.1", 40500, "server");
            
            // clear cookie
            instance.ClearCookie();
            
            // clear cache
            instance.ClearCache();
            
            // go to zennolab.com
            Tab tab = instance.MainTab;
            if (tab.IsNull) return -1;
            if (tab.IsVoid) return -1;
            tab.Navigate("zennolab.com");
            if (tab.IsBusy) tab.WaitDownloading();
            
            return 0;
        }
    }
}
<?php
namespace System;
namespace ZennoLab\CommandCenter;
 
class Example
{
    public static function Execute()
    {
        // create a new Instance object
        $instance = new Instance("127.0.0.1", 40500, "server");
        
        // clear cookie
        $instance->ClearCookie();
        
        // clear cache
        $instance->ClearCache();
        
        // go to zennolab.com
        Tab tab = instance.MainTab;
        if (tab.IsNull) return -1;
        if (tab.IsVoid) return -1;
        tab.Navigate("zennolab.com");
        if (tab.IsBusy) tab.WaitDownloading();
        
        return 0;
    }
}
?>
Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      ZennoLab.CommandCenter.Instance

Requirements

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

See Also

Reference

Instance Members
ZennoLab.CommandCenter Namespace
Tab Class