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
Int64
The disk space requirement in bytes.
The disk space requirement in bytes.
Remarks
Win32 MSI API: MsiGetFeatureCost
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)