public int GetItemsCount(string listGuid, string viewGuid)
{
int itemCount = 0;
try
{
GetListItemsResponseGetListItemsResult getItemsResult
= this.listProxy.GetListItems(listGuid, viewGuid, null, null, null, null, null);
itemCount = getItemsResult.listitems.data.Any.Length;
}
catch (SoapException soapException)
{
this.Site.Log.Add(
LogEntryKind.Debug,
@"There is an exception generated when calling [GetItemsCount] method:\r\n{0}, check parameters are correct or not.",
soapException.Message);
throw;
}
return itemCount;
}