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.
Declaration Syntax
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 )
Parameters
- 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.
Return Value
The disk space requirement in bytes.
Remarks
Win32 MSI API: MsiGetFeatureCost