Skip to main content

ShellLink Class

Namespace: Velopack.Windows
Assembly: Velopack
Assembly Version: 0.0.626+6f1a94e

Summary description for ShellLink.

[ExcludeFromCodeCoverage]
public class ShellLink : IDisposable

Inheritance: object → ShellLink

Attributes: ExcludeFromCodeCoverageAttribute

Implements: IDisposable

Constructors

NameDescription
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

NameDescription
ArgumentsGets/sets any command line arguments associated with the link
DescriptionGets/sets the description of the link
DisplayModeGets/sets the initial display mode when the shortcut is run
HotKeyGets/sets the HotKey to start the shortcut (if any)
IconIndexGets the index of this icon within the icon path's resources
IconPathGets the path to the file containing the icon for this shortcut.
ShortCutFile
TargetGets/sets the fully qualified path to the link's target
WorkingDirectoryGets/sets the Working Directory for the Link

Methods

NameDescription
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

NameDescription
ShellLink.EShellLinkResolveFlagsFlags determining how the links with missing targets are resolved.
ShellLink.LinkDisplayMode
ShellLink.PROPERTYKEY
ShellLink.PropVariant

Documentation generated by MdDocs