예제 #1
0
        /// <summary>
        /// Sets a stream at a specified location.
        /// </summary>
        /// <param name="field">Index into record to set stream.</param>
        /// <param name="path">Path to file to read into stream.</param>
        public void SetStream(int field, string path)
        {
            int error = MsiInterop.MsiRecordSetStream(this.Handle, field, path);

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