Skip to content

ShortcutTarget Struct

Holds information about the target of a shortcut file.

MethodDescription
Equals(obj)Tests whether two shortcut targets have the same product code, feature, and/or component code.
GetHashCode()Generates a hash code using all parts of the shortcut target.
PropertyDescription
ComponentCodeGets the target component code of the shortcut, or null if not available.
FeatureGets the name of the target feature of the shortcut, or null if not available.
ProductCodeGets the target product code of the shortcut, or null if not available.
WixToolset.Dtf.WindowsInstaller.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Tests whether two shortcut targets have the same product code, feature, and/or component code.

public bool Equals(
System.Object obj
)
ParameterTypeDescription
objSystem.ObjectThe shortcut target to compare to the current object.

bool True if obj is a shortcut target and all parts of the targets are the same, else false.

Generates a hash code using all parts of the shortcut target.

public int GetHashCode()

int An integer suitable for hashing the shortcut target.

Gets the target component code of the shortcut, or null if not available.

public string ComponentCode { get; set; }

Gets the name of the target feature of the shortcut, or null if not available.

public string Feature { get; set; }

Gets the target product code of the shortcut, or null if not available.

public string ProductCode { get; set; }