Change-Id: Id8cf15e5ab4b726ad6b497f51d03ca8b35ba0571
{
_listHandle = handle;
+ int error = Interop.List.First(_listHandle);
+ if (CalendarError.None != (CalendarError)error)
+ {
+ Log.Error(Globals.LogTag, "MoveFirst Failed with error " + error);
+ throw CalendarErrorFactory.GetException(error);
+ }
+
_memoryPressure += this.Count * CalendarViews.Record.AverageSize;
GC.AddMemoryPressure(_memoryPressure);
}
/// <exception cref="ArgumentException">Thrown when one of the arguments provided to a method is not valid</exception>
public void SetProjection(uint[] propertyIdArray)
{
+ if (propertyIdArray == null)
+ {
+ throw new ArgumentException("Invalid Parameters Provided");
+ }
+
int error = Interop.Query.SetProjection(_queryHandle, propertyIdArray, propertyIdArray.Length);
if (CalendarError.None != (CalendarError)error)
{