Skip to main content

ShortcutTarget Struct

Holds information about the target of a shortcut file.

Methods​

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.

Properties​

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 6.0.0+8c7432e50072e009353ea5f2c956ccf453476f71

Equals(obj) Method​

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

Declaration​

public bool Equals(
System.Object obj
)

Parameters​

ParameterTypeDescription
objSystem.ObjectThe shortcut target to compare to the current object.

Return value​

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

GetHashCode() Method​

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

Declaration​

public int GetHashCode()

Return value​

int An integer suitable for hashing the shortcut target.

ComponentCode Property​

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

Declaration​

public string ComponentCode { get; set; } 

Feature Property​

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

Declaration​

public string Feature { get; set; } 

ProductCode Property​

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

Declaration​

public string ProductCode { get; set; }