Cloud Storage Integrator - Online Help
Cloud Storage Integrator
Questions / Feedback?

Search Method

This method searches for resources matching the specified query.

Object Oriented Interface

public function doSearch($query);

Procedural Interface

incloudstorage_onedrive_do_search($res, $query);

Remarks

This method may be called to search for resources matching the query parameter. The query value will automatically be URL encoded.

After calling this method set ResourceIndex to a value from 0 to ResourceCount - 1. Setting ResourceIndex populates other Resource properties to provide information about the resource. After calling this method the following resource properties are populated:

If the results are paged ResourceMarker will be populated. Call Search again to retrieve the next page of results. Continue calling Search until ResourceMarker is empty string to retrieve all pages.

Example:

onedrive.Search("vacation photos");
for (int i = 0; i < onedrive.ResourceCount; i++)
{
  onedrive.ResourceIndex = i;
  Console.WriteLine(onedrive.ResourceName);
  Console.WriteLine(onedrive.ResourceSize);
  Console.WriteLine(onedrive.ResourceModifiedDate);
}

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 1.0.6240.0