GetCost Method (includeParents, includeChildren, installState)

DTF API

Copy image CopyHover image
Deployment Tools Foundation GetCost Method (includeParents, includeChildren, installState)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerFeatureInfoGetCost(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++ F#
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
)
member GetCost : 
        includeParents : bool * 
        includeChildren : bool * 
        installState : InstallState -> int64 
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.
Remarks

Win32 MSI API: MsiGetFeatureCost

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)