示例#1
0
        /// <summary>
        /// Sets integer value at specified location.
        /// </summary>
        /// <param name="field">Index into record to set integer.</param>
        /// <param name="value">Value to set into record.</param>
        public void SetInteger(int field, int value)
        {
            int error = MsiInterop.MsiRecordSetInteger(this.Handle, field, value);

            if (0 != error)
            {
                throw new Win32Exception(error);
            }
        }