예제 #1
0
        /// <summary>
        /// Fetches the next row in the view.
        /// </summary>
        /// <returns>Returns the fetched record; otherwise null.</returns>
        public Record Fetch()
        {
            var error = MsiInterop.MsiViewFetch(this.Handle, out var recordHandle);

            if (259 == error)
            {
                return(null);
            }
            else if (0 != error)
            {
                throw new MsiException(error);
            }

            return(new Record(recordHandle));
        }