Components Method (szUserSid, dwContext)

DTF API

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++ F#
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
)
static member Components : 
        szUserSid : string * 
        dwContext : UserContexts -> IEnumerable<ComponentInstallation> 
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.11.1.2318)