コード例 #1
0
        /// <summary>
        /// Creates a jump list item with the specified path.
        /// </summary>
        /// <param name="path">The path to the jump list item.</param>
        /// <remarks>The file type should associate the given file
        /// with the calling application.</remarks>
        public JumpListItem(string path)
        {
            // Get the absolute path
            string absPath = ShellHelper.GetAbsolutePath(path);

            // Make sure this is valid
            if (!File.Exists(absPath))
            {
                throw new FileNotFoundException(string.Format("The given path does not exist ({0})", path));
            }

            ParsingName = absPath;
        }