Beispiel #1
0
 public virtual void UpdateScheme(string protocol, string app, string name, string customQueries,
                                  string icon = null, int iconNumber = 0, RecordScheme register = RecordScheme.OnCurrentUser)
 {
     try
     {
         UriScheme.UpdateScheme(protocol, app, name, customQueries, icon, iconNumber, register);
     }
     catch (Exception ex)
     {
         if (this.ThrowError)
         {
             throw ex;
         }
     }
 }
Beispiel #2
0
 public virtual void UnregisterScheme(string protocol, string name,
                                      RecordScheme register = RecordScheme.OnCurrentUser)
 {
     try
     {
         UriScheme.UnregisterScheme(protocol, name, register);
     }
     catch (Exception ex)
     {
         if (this.ThrowError)
         {
             throw ex;
         }
     }
 }
Beispiel #3
0
        public virtual Boolean Exist(string protocol, string name,
                                     RecordScheme register = RecordScheme.OnCurrentUser)
        {
            try
            {
                return(UriScheme.DoesItExist(protocol, name, register));
            }
            catch (Exception ex)
            {
                if (this.ThrowError)
                {
                    throw ex;
                }

                return(false);
            }
        }