C# Class SystemEx.ShellLink

Utility class to aid working with shortcut (.lnk) files.
Inheritance: IDisposable
Afficher le fichier Open project: pvginkel/SystemEx

Private Properties

Свойство Type Description
Dispose void
Open void
Open void
getIcon System.Drawing.Icon

Méthodes publiques

Méthode Description
Dispose ( ) : void

Releases all resources used by the ShellLink.

Open ( string linkFile ) : void

Loads a shortcut from the specified location.

Save ( ) : void

Saves the shortcut to the path stored in ShortcutFile.

Save ( string linkFile ) : void

Saves the shortcut to the specified location/

ShellLink ( ) : System

Initializes a new instance of the ShellLink class.

ShellLink ( string linkFile ) : System

Initializes a new instance of the ShellLink class from a specific link file.

Private Methods

Méthode Description
Dispose ( bool disposing ) : void
Open ( string linkFile, IntPtr hWnd, ShellLinkResolveType resolveFlags ) : void
Open ( string linkFile, IntPtr hWnd, ShellLinkResolveType resolveFlags, ushort timeout ) : void
getIcon ( bool large ) : Icon

Method Details

Dispose() public méthode

Releases all resources used by the ShellLink.
public Dispose ( ) : void
Résultat void

Open() public méthode

Loads a shortcut from the specified location.
public Open ( string linkFile ) : void
linkFile string The shortcut file to load.
Résultat void

Save() public méthode

Saves the shortcut to the path stored in ShortcutFile.
public Save ( ) : void
Résultat void

Save() public méthode

Saves the shortcut to the specified location/
public Save ( string linkFile ) : void
linkFile string The path to store the shortcut to.
Résultat void

ShellLink() public méthode

Initializes a new instance of the ShellLink class.
public ShellLink ( ) : System
Résultat System

ShellLink() public méthode

Initializes a new instance of the ShellLink class from a specific link file.
public ShellLink ( string linkFile ) : System
linkFile string The Shortcut file to open.
Résultat System