Exemple #1
0
        /// <summary>
        /// Executes a query substituing the values from the records into the customizable parameters
        /// in the view.
        /// </summary>
        /// <param name="record">Record containing parameters to be substituded into the view.</param>
        public void Execute(Record record)
        {
            var error = MsiInterop.MsiViewExecute(this.Handle, null == record ? 0 : record.Handle);

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