public void RemovePinnedItemFromTaskbar(string item, object requestImpl) { if (requestImpl == null) { throw new ArgumentNullException("requestImpl"); } using (var request = requestImpl.As <Request>()) { request.Debug("Calling 'ProviderService::RemovePinnedItemFromTaskbar'"); ShellApplication.Unpin(item); } }
public void RemovePinnedItemFromTaskbar(string item, IRequest request) { if (request == null) { throw new ArgumentNullException("request"); } if (!request.IsCanceled) { request.Debug("Calling 'ProviderService::RemovePinnedItemFromTaskbar'"); ShellApplication.Unpin(item); } }