FileAssociation/FileAssociationInfo.cs
/// <summary>
/// Deletes actual file extension entry in registry.
/// </summary>
/// <param name="file"><see cref="FileAssociationInfo"/> instance that contains specifics on extension to be deleted.</param>
Deletes actual file extension entry in registry.
Deletes actual file extension entry in registry .
protected void Delete(FileAssociationInfo file)
        {
            if (!file.Exists)
            {
                throw new Exception("Key not found.");
            }
            RegistryKey root = RegistryWrapper.ClassesRoot;
            root.DeleteSubKeyTree(file.extension);
        }
protected void Delete ( FileAssociationInfo file ) { if ( ! file . Exists ) { throw new Exception ( " " ) ; } RegistryKey root = RegistryWrapper . ClassesRoot ; root . DeleteSubKeyTree ( file . extension ) ; }
Deletes actual file extension entry in registry.
Deletes actual file extension entry in registry .
file
FileAssociationInfo
instance that contains specifics on extension to be deleted.
instance that contains specifics on extension to be deleted .