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

Creates new *.LNK link

Namespace: Tools.IOt
Assembly: Tools.Win (in Tools.Win.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public static ShellLink CreateLink(
	string Target,
	string LinkLocation,
	string Arguments
)
Visual Basic
Public Shared Function CreateLink ( _
	Target As String, _
	LinkLocation As String, _
	Arguments As String _
) As ShellLink
Visual C++
public:
static ShellLink^ CreateLink(
	String^ Target, 
	String^ LinkLocation, 
	String^ Arguments
)
F#
static member CreateLink : 
        Target:string * 
        LinkLocation:string * 
        Arguments:string -> ShellLink 
JScript
public static function CreateLink(
	Target : String, 
	LinkLocation : String, 
	Arguments : String
) : ShellLink

Parameters

Target
Type: System..::..String
Link target
LinkLocation
Type: System..::..String
Full path where the link will be stored (including the *.lnk extension)
Arguments
Type: System..::..String
Optional. Arguments for launching link target

Return Value

Instance of link that was created. The link is saved.

Remarks

Link extension must be *.lnk!

Exceptions

ExceptionCondition
System..::..ArgumentExceptionFile or directory with path LinkLocation already exists =or= Link cannot be created.

See Also