Deployment Tools Foundation
InapplicablePatchHandler Delegate
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► InapplicablePatchHandler
Receives an exception from
DetermineApplicablePatches(String, array<String>[]()[][], InapplicablePatchHandler, String, UserContexts)
indicating the reason a particular patch is not applicable to a product.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public delegate void InapplicablePatchHandler( string patch, Exception exception )
Public Delegate Sub InapplicablePatchHandler ( patch As String, exception As Exception )
public delegate void InapplicablePatchHandler( String^ patch, Exception^ exception )
Parameters
- patch (String)
- MSP file path, XML file path, or XML blob that was passed to DetermineApplicablePatches(String, array<String>[]()[][], InapplicablePatchHandler, String, UserContexts)
- exception (Exception)
- exception indicating the reason the patch is not applicable
Remarks
If exception is an InstallerException or subclass, then its ErrorCode and Message properties will indicate a more specific reason the patch was not applicable.
The exception could also be a FileNotFoundException if the patch string was a file path.
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)