[This is preliminary documentation and is subject to change.]

The ShellLink type exposes the following members.

Constructors

  NameDescription
Public methodShellLink
Creates new instace of the ShellLink class

Methods

  NameDescription
Public methodStatic memberCreateLink
Creates new *.LNK link
Public methodDispose()()()()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the ShellLink and optionally releases the managed resources
Public methodStatic memberResolveLink(String)
Resolves link target
Public methodStatic memberResolveLink(Path)
Resolves link target
Public methodSave
Saves a shortcut object to disk.
Public methodSaveAs
Saves a shortcut object to disk on different place then where it is saved now
Public methodSetRelativePath
Sets the relative path to the Shell link object.

Extension Methods

  NameDescription
Public Extension MethodGetIcon
Gets icon for given file or folder (including drive and UNC share or server)
(Defined by FileSystemTools.)

Properties

  NameDescription
Public propertyArguments
Link argumens
Public propertyDescription
Shortcut description
Public propertyDisposed
Gets value idicationg if object was disposed
Public propertyFullName
Returns the fully qualified path of the shortcut object's target.
Public propertyHotkey
Gets or sets the hotkey for the shortcut.
Public propertyIconIndex
Public propertyIconPath
Assigns an icon to a shortcut, or identifies the icon assigned to a shortcut.
Protected propertyIShellLinkObject
Gets COM object that represents the link
Public propertyTargetPath
The path to the shortcut's executable.
Public propertyWindowStyle
Assigns a window style to a shortcut, or identifies the type of window style used by a shortcut.
Public propertyWorkingDirectory
Assign a working directory to a shortcut, or identifies the working directory used by a shortcut.

See Also