Deployment Tools Foundation
PatchInstallation Constructor (patchCode, productCode, userSid, context)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► PatchInstallation ► PatchInstallation(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.