FileAssociation/ProgramAssociationInfo.cs
/// <summary>
/// Removes single <see cref="ProgramVerb"/> that define the verb supported by this ProgID.
/// </summary>
/// <param name="name">Name of verb to remove</param>
Removes single  that define the verb supported by this ProgID.
Removes single that define the verb supported by this ProgID .
protected void RemoveVerbInternal(string name)
      {
         RegistryKey root = RegistryWrapper.ClassesRoot;
         RegistryKey key = root.OpenSubKey(this.progId);
         key = key.OpenSubKey("shell", true);
         if (key == null)
            throw new RegistryException("Shell key not found");
         string[] subkeynames = key.GetSubKeyNames();
         foreach (string s in subkeynames)
         {
            if (s == name)
            {
               key.DeleteSubKeyTree(name);
               break;
            }
         }
         key.Close();
         root.Close();
         ShellNotification.NotifyOfChange();
      }
protected void RemoveVerbInternal ( string name ) { RegistryKey root = RegistryWrapper . ClassesRoot ; RegistryKey key = root . OpenSubKey ( this . progId ) ; key = key . OpenSubKey ( " " , true ) ; if ( key == null ) throw new RegistryException ( " " ) ; string [ ] subkeynames = key . GetSubKeyNames ( ) ; foreach ( string s in subkeynames ) { if ( s == name ) { key . DeleteSubKeyTree ( name ) ; break ; } } key . Close ( ) ; root . Close ( ) ; ShellNotification . NotifyOfChange ( ) ; }
Removes single  that define the verb supported by this ProgID.
Removes single that define the verb supported by this ProgID .
name
string
Name of verb to remove
Name of verb to remove