PatchInstallation Constructor (patchCode, productCode, userSid, context)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation PatchInstallation Constructor (patchCode, productCode, userSid, context)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerPatchInstallationPatchInstallation(String, String, String, UserContexts)
Creates a new object for accessing information about a patch installation on the current system.
Declaration Syntax
C# Visual Basic Visual C++
public PatchInstallation(
	string patchCode,
	string productCode,
	string userSid,
	UserContexts context
)
Public Sub New ( 
	patchCode As String,
	productCode As String,
	userSid As String,
	context As UserContexts
)
public:
PatchInstallation(
	String^ patchCode, 
	String^ productCode, 
	String^ userSid, 
	UserContexts context
)
Parameters
patchCode (String)
Registered patch code (GUID) of the patch.
productCode (String)
ProductCode (GUID) the patch has been applied to. This parameter may be null for patches that are registered only and not yet applied to any product.
userSid (String)
The specific user, when working in a user context. This parameter may be null to indicate the current user. The parameter must be null when working in a machine context.
context (UserContexts)
The user context. The calling process must have administrative privileges to get information for a product installed for a user other than the current user.
Remarks

If the productCode is null, the Patch object may only be used to read and update the patch's SourceList information.

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