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

Sets the relative path to the Shell link object.

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

Syntax

C#
public void SetRelativePath(
	string RelativePath
)
Visual Basic
Public Sub SetRelativePath ( _
	RelativePath As String _
)
Visual C++
public:
void SetRelativePath(
	String^ RelativePath
)
F#
member SetRelativePath : 
        RelativePath:string -> unit 
JScript
public function SetRelativePath(
	RelativePath : String
)

Parameters

RelativePath
Type: System..::..String
String contains the new relative path. It should be a file name, not a folder name.

Remarks

Clients commonly define a relative link when it may be moved along with its target, causing the absolute path to become invalid. The SetRelativePath method can be used to help the link resolution process find its target based on a common path prefix between the target and the relative path. To assist in the resolution process, clients should set the relative path as part of the link creation process.

See Also