[This is preliminary documentation and is subject to change.]
The ShellLink type exposes the following members.
Constructors
Methods
| Name | Description | |
|---|---|---|
| CreateLink | Creates new *.LNK link | |
| Dispose()()()() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
| Dispose(Boolean) | Releases the unmanaged resources used by the ShellLink and optionally releases the managed resources | |
| ResolveLink(String) | Resolves link target | |
| ResolveLink(Path) | Resolves link target | |
| Save | Saves a shortcut object to disk. | |
| SaveAs | Saves a shortcut object to disk on different place then where it is saved now | |
| SetRelativePath | Sets the relative path to the Shell link object. |
Extension Methods
| Name | Description | |
|---|---|---|
| GetIcon | Gets icon for given file or folder (including drive and UNC share or server) (Defined by FileSystemTools.) |
Properties
| Name | Description | |
|---|---|---|
| Arguments | Link argumens | |
| Description | Shortcut description | |
| Disposed | Gets value idicationg if object was disposed | |
| FullName | Returns the fully qualified path of the shortcut object's target. | |
| Hotkey | Gets or sets the hotkey for the shortcut. | |
| IconIndex | ||
| IconPath | Assigns an icon to a shortcut, or identifies the icon assigned to a shortcut. | |
| IShellLinkObject | Gets COM object that represents the link | |
| TargetPath | The path to the shortcut's executable. | |
| WindowStyle | Assigns a window style to a shortcut, or identifies the type of window style used by a shortcut. | |
| WorkingDirectory | Assign a working directory to a shortcut, or identifies the working directory used by a shortcut. |