GetRelatedProducts Method (upgradeCode)

DTF API

Copy image CopyHover image
Deployment Tools Foundation GetRelatedProducts Method (upgradeCode)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerProductInstallationGetRelatedProducts(String)
Gets the set of all products with a specified upgrade code. This method lists the currently installed and advertised products that have the specified UpgradeCode property in their Property table.
Declaration Syntax
C# Visual Basic Visual C++ F#
public static IEnumerable<ProductInstallation> GetRelatedProducts(
	string upgradeCode
)
Public Shared Function GetRelatedProducts ( 
	upgradeCode As String
) As IEnumerable(Of ProductInstallation)
public:
static IEnumerable<ProductInstallation^>^ GetRelatedProducts(
	String^ upgradeCode
)
static member GetRelatedProducts : 
        upgradeCode : string -> IEnumerable<ProductInstallation> 
Parameters
upgradeCode (String)
Upgrade code of related products
Return Value
IEnumerable<(Of <(<'ProductInstallation>)>)>
Enumeration of product codes
Remarks

Win32 MSI API: MsiEnumRelatedProducts

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)