developer:soap-1.3:methods:searchproductscount

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
developer:soap-1.3:methods:searchproductscount [2010/06/01 16:17]
tem created
developer:soap-1.3:methods:searchproductscount [2010/10/12 16:48]
irina
Line 46: Line 46:
 </​code>​ </​code>​
  
 +==== .NET VB ====
 +<code vb>
 +Dim MatchAll As Boolean
 +        MatchAll = False
 +        Dim searchParams(1) As usaepay.SearchParam
 +        searchParams(0) = New usaepay.SearchParam
 +        searchParams(0).Field = "​Created"​
 +        searchParams(0).Type = "​gt"​
 +        searchParams(0).Value = "​2010-09-07"​
 +
 +        Dim SearchResults As usaepay.ProductSearchResult = New usaepay.ProductSearchResult
 +        SearchResults = client.searchProductsCount(token,​ searchParams,​ MatchAll, 0, 1000, "​created"​)
 +
 +        MsgBox(SearchResults.ProductsMatched)
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +usaepay.SearchParam[] param = new usaepay.SearchParam[1];​
 +            param[0] = new usaepay.SearchParam();​
 +            param[0].Field = "​Created";​
 +            param[0].Type = "​Contains";​
 +            param[0].Value = "​2010-09-01";​
 +
 +            Boolean matchAll = true;
 +            string start = "​0";​
 +            string limit = "​10";​
 +            string sort = "​created";​
 +
 +            usaepay.ProductSearchResult response = new usaepay.ProductSearchResult();​
 +
 +            try
 +            {
 +                response = client.searchProductsCount(token,​ param, matchAll, start, limit, sort);
 +                MessageBox.Show(string.Concat(response.ProductsMatched));​
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 +</​code>​
  
  
developer/soap-1.3/methods/searchproductscount.txt ยท Last modified: 2010/10/12 16:48 by irina

Page Tools