ShortcutTarget Struct
Holds information about the target of a shortcut file.
Methods
Method | Description |
---|---|
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
Property | Description |
---|---|
ComponentCode | Gets the target component code of the shortcut, or null if not available. |
Feature | Gets the name of the target feature of the shortcut, or null if not available. |
ProductCode | Gets the target product code of the shortcut, or null if not available. |
WixToolset.Dtf.WindowsInstaller.dll
version 5.0.2+aa65968c419420d32e3e1b647aea0082f5ca5b78
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
Parameter | Type | Description |
---|---|---|
obj | System.Object | The 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; }