C# Class ImageGlass.Library.FileAssociations.AssociationManager

Provides more streamlined interface for associating a single or multiple extensions with a single program.
Show file Open project: d2phap/ImageGlass

Public Methods

Method Description
Associate ( string progId ) : void

Associates an already existing program id with a list of extensions.

Associate ( string progId, string executablePath ) : void

Associates a single executable with a list of extensions.

CheckAssociation ( string progId ) : string[]

Determines of the list of extensions are associated with the specified program id.

Method Details

Associate() public method

Associates an already existing program id with a list of extensions.
public Associate ( string progId ) : void
progId string The program id to associate extensions with.
return void

Associate() public method

Associates a single executable with a list of extensions.
public Associate ( string progId, string executablePath ) : void
progId string Name of program id
executablePath string Path to executable to start including arguments.
return void

CheckAssociation() public method

Determines of the list of extensions are associated with the specified program id.
public CheckAssociation ( string progId ) : string[]
progId string Program id to check against.
return string[]