Deployment Tools Foundation
GetCost Method (installState)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► ComponentInfo ► GetCost(InstallState)
Gets disk space per drive required to install a component.

C# | Visual Basic | Visual C++ |
public IList<InstallCost> GetCost( InstallState installState )
Public Function GetCost ( _ installState As InstallState _ ) As IList(Of InstallCost)
public: IList<InstallCost>^ GetCost( InstallState installState )

- installState (InstallState)
- Requested component state

A list of InstallCost structures, specifying the cost for each drive for the component

Win32 MSI API: MsiEnumComponentCosts