Components Method (szUserSid, dwContext)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Components Method (szUserSid, dwContext)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerComponentInstallationComponents(String, UserContexts)
Gets the set of installed components for products in the indicated context.
Declaration Syntax
C# Visual Basic Visual C++
public static IEnumerable<ComponentInstallation> Components(
	string szUserSid,
	UserContexts dwContext
)
Public Shared Function Components ( 
	szUserSid As String,
	dwContext As UserContexts
) As IEnumerable(Of ComponentInstallation)
public:
static IEnumerable<ComponentInstallation^>^ Components(
	String^ szUserSid, 
	UserContexts dwContext
)
Parameters
szUserSid (String)
dwContext (UserContexts)
Return Value
IEnumerable < (Of < ( <' ComponentInstallation > ) > ) >
Remarks

Win32 MSI API: MsiEnumComponentsEx

Exceptions
Exception Condition
InstallerException The installer configuration data is corrupt

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