ShellLink Class
Namespace: Velopack.Windows
Assembly: Velopack
Assembly Version: 0.0.942+a011233
Summary description for ShellLink.
[ExcludeFromCodeCoverage]
public class ShellLink : IDisposable
Inheritance: object → ShellLink
Attributes: ExcludeFromCodeCoverageAttribute
Implements: IDisposable
Constructors
Name | Description |
---|---|
ShellLink() | Creates an instance of the Shell Link object. |
ShellLink(string) | Creates an instance of a Shell Link object from the specified link file |
Properties
Name | Description |
---|---|
Arguments | Gets/sets any command line arguments associated with the link |
Description | Gets/sets the description of the link |
DisplayMode | Gets/sets the initial display mode when the shortcut is run |
HotKey | Gets/sets the HotKey to start the shortcut (if any) |
IconIndex | Gets the index of this icon within the icon path's resources |
IconPath | Gets the path to the file containing the icon for this shortcut. |
ShortCutFile | |
Target | Gets/sets the fully qualified path to the link's target |
WorkingDirectory | Gets/sets the Working Directory for the Link |
Methods
Name | Description |
---|---|
Dispose() | Dispose the object, releasing the COM ShellLink object |
GetIcon(bool) | This pointer must be destroyed with DistroyIcon when you are done with it. |
Open(string) | Loads a shortcut from the specified file |
Open(string, IntPtr, ShellLink.EShellLinkResolveFlags) | Loads a shortcut from the specified file, and allows flags controlling the UI behaviour if the shortcut's target isn't found to be set. |
Open(string, IntPtr, ShellLink.EShellLinkResolveFlags, ushort) | Loads a shortcut from the specified file, and allows flags controlling the UI behaviour if the shortcut's target isn't found to be set. If no SLR_NO_UI is specified, you can also specify a timeout. |
Save() | Saves the shortcut to ShortCutFile. |
Save(string) | Saves the shortcut to the specified file |
SetAppUserModelId(string) | Sets the appUserModelId |
SetToastActivatorCLSID(Guid) | Sets the ToastActivatorCLSID |
SetToastActivatorCLSID(string) | Sets the ToastActivatorCLSID |
Nested Types
Name | Description |
---|---|
ShellLink.EShellLinkResolveFlags | Flags determining how the links with missing targets are resolved. |
ShellLink.LinkDisplayMode | |
ShellLink.PROPERTYKEY | |
ShellLink.PropVariant |
Documentation generated by MdDocs