Deployment Tools Foundation
GetCost Method (includeParents, includeChildren, installState)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► FeatureInfo ► GetCost(Boolean, Boolean, InstallState)
Calculates the disk space required by the feature and its selected children and parent features.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
public long GetCost( bool includeParents, bool includeChildren, InstallState installState )
Public Function GetCost ( _ includeParents As Boolean, _ includeChildren As Boolean, _ installState As InstallState _ ) As Long
public: long long GetCost( bool includeParents, bool includeChildren, InstallState installState )
![](collapse_all.gif)
- includeParents (Boolean)
- If true, the parent features are included in the cost.
- includeChildren (Boolean)
- If true, the child features are included in the cost.
- installState (InstallState)
- Specifies the installation state.
![](collapse_all.gif)
The disk space requirement in bytes.
![](collapse_all.gif)
Win32 MSI API: MsiGetFeatureCost