ZennoLab Assemblies Documentation
IsVoid Property (DocumentCollection)
Example 
ZennoLab.CommandCenter Namespace > DocumentCollection Class : IsVoid Property
Gets the specified collection is void collection or not.
Syntax
public bool IsVoid {get;}

Property Value

Type: System.Boolean

true if collection do not represented on the server; otherwise, false.

Example
The following code example uses the IsVoid property.
public static int Execute(Instance instance, IZennoPosterProjectModel project)
{
    // clear cookie
    instance.ClearCookie();
    
    // go to zennolab.com
    Tab tab = instance.MainTab;
    if ((tab.IsVoid) || (tab.IsNull)) return -1;
    if (tab.IsBusy) tab.WaitDownloading();
    tab.Navigate("zennolab.com");
    if (tab.IsBusy) tab.WaitDownloading();
    
    // get all documents
    DocumentCollection docCol = tab.AllDocuments;
    
    // if collection is void
    if (docCol.IsVoid) return -1;
    
    return 0;
}
public static function Execute($instance, $project)
{
    // clear cookie
    $instance->ClearCookie();
    
    // go to zennolab.com
    $tab = $instance->MainTab;
    if (($tab->IsVoid) || ($tab->IsNull)) return -1;
    if ($tab->IsBusy) $tab->WaitDownloading();
    $tab->Navigate("zennolab.com");
    if ($tab->IsBusy) $tab->WaitDownloading();
    
    // get all documents
    $docCol = $tab->AllDocuments;
    
    // if collection is void
    if ($docCol->IsVoid) return -1;
    
    return 0;
}
Requirements

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

See Also

Reference

DocumentCollection Class
DocumentCollection Members
ErrorDetected Property