protected override void CloneCore(ApplicationJumpItemInfo clone) { base.CloneCore(clone); ApplicationJumpPathInfo path = (ApplicationJumpPathInfo)clone; path.Path = Path; }
public static ApplicationJumpPathInfo Add(this IApplicationJumpList jumpList, string customCategory, string jumpPath) { if (jumpList == null) { throw new ArgumentNullException("jumpList"); } ApplicationJumpPathInfo jumpItem = new ApplicationJumpPathInfo() { Path = jumpPath, CustomCategory = customCategory }; try { jumpList.Add(jumpItem); } catch (InvalidApplicationJumpItemException e) { throw new InvalidOperationException("", e); } return(jumpItem); }