![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
GetTotalCost Method
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Session ► GetTotalCost()()()()
Gets the total disk space per drive required for the installation.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public IList<InstallCost> GetTotalCost()
Public Function GetTotalCost As IList(Of InstallCost)
public: IList<InstallCost>^ GetTotalCost()
member GetTotalCost : unit -> IList<InstallCost>
![](collapse_all.gif)
![](collapse_all.gif)
Win32 MSI API: MsiEnumComponentCosts
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)