ShortcutTarget Struct
Holds information about the target of a shortcut file.
Methods
Section titled “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
Section titled “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.0+41e11442b2ca93e444b60213b5ae99dcbab787d8 |
Equals(obj) Method
Section titled “Equals(obj) Method”Tests whether two shortcut targets have the same product code, feature, and/or component code.
Declaration
Section titled “Declaration”public bool Equals( System.Object obj)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| obj | System.Object | The shortcut target to compare to the current object. |
Return value
Section titled “Return value”bool True if obj is a shortcut target and all parts of the targets are the same, else false.
GetHashCode() Method
Section titled “GetHashCode() Method”Generates a hash code using all parts of the shortcut target.
Declaration
Section titled “Declaration”public int GetHashCode()Return value
Section titled “Return value”int An integer suitable for hashing the shortcut target.
ComponentCode Property
Section titled “ComponentCode Property”Gets the target component code of the shortcut, or null if not available.
Declaration
Section titled “Declaration”public string ComponentCode { get; set; }Feature Property
Section titled “Feature Property”Gets the name of the target feature of the shortcut, or null if not available.
Declaration
Section titled “Declaration”public string Feature { get; set; }ProductCode Property
Section titled “ProductCode Property”Gets the target product code of the shortcut, or null if not available.
Declaration
Section titled “Declaration”public string ProductCode { get; set; }