示例#1
0
 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);
     }
 }
示例#2
0
        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);
            }
        }