Zennolab.CommandCenter
Instance Class
Members  Example  See Also  Send Feedback
Zennolab.CommandCenter Namespace : Instance Class
Represents a browser's window of ZennoPoster

Object Model

Instance ClassTab ClassTab Class

Syntax

C# 
public class Instance 

Example

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

C#Copy Code
using System;
using Zennolab.CommandCenter;
 
namespace Sample
{
    internal class Example
    {
        public static int Execute()
        {
            Instance instance = new Instance("127.0.0.1", 40500, "server");
            
            instance.ClearCookie();
 
            instance.ClearCache();
            
            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;
        }
    }
}
PHPCopy Code
<?php
import namespace System;
import namespace Zennolab:::CommandCenter;
 
class Example
{
    public static function Execute($instance)
    {
        $instance = new Instance("127.0.0.1", 40500, "server");
            
        $instance->ClearCookie();
 
        $instance->ClearCache();
            
        $tab = $instance->MainTab;
        if ($tab->IsNull) return -1;
        if ($tab->IsVoid) return -1;
        $tab->Navigate("zennolab.com");
        if ($tab->IsBusy) $tab->WaitDownloading();
    }
}
?>

Remarks

The Instance class contain the properties such as ErrorDetected and IsVoid. Their use necessary for the correct work of your code.

Inheritance Hierarchy

System.Object
   Zennolab.CommandCenter.Instance

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.