/// <summary> /// A limited number of tuples are pre-fetched after each execute(). /// If maxrows is negative, all rows will be fetched before the application is /// permitted to continue. Once the cache is filled, a number of tuples are shuffled to /// make room for new ones, but taking into account non-read elements. /// Filling the cache quicker than reading leads to an error. /// </summary> /// <param name="mid"></param> /// <param name="maxrows"></param> /// <returns></returns> public static MapiMsg MapiCacheLimit(MapiConnection mid, int maxrows) { return(new MapiMsg(CMapiLib.mapi_cache_limit(mid.Ptr, maxrows))); }