C# Класс SystemEx.ShellLink

Utility class to aid working with shortcut (.lnk) files.
Наследование: IDisposable
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
Dispose void
Open void
Open void
getIcon System.Drawing.Icon

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

Releases all resources used by the ShellLink.
public Dispose ( ) : void
Результат void

Open() публичный Метод

Loads a shortcut from the specified location.
public Open ( string linkFile ) : void
linkFile string The shortcut file to load.
Результат void

Save() публичный Метод

Saves the shortcut to the path stored in ShortcutFile.
public Save ( ) : void
Результат void

Save() публичный Метод

Saves the shortcut to the specified location/
public Save ( string linkFile ) : void
linkFile string The path to store the shortcut to.
Результат void

ShellLink() публичный Метод

Initializes a new instance of the ShellLink class.
public ShellLink ( ) : System
Результат System

ShellLink() публичный Метод

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.
Результат System