SoftwareDistributionPackage.PopulatePackageFromWindowsInstallerPatch Method (String)
Applies To: Windows Server Update Services
Creates a WindowsInstallerPatchItem from the given MSP file.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
public void PopulatePackageFromWindowsInstallerPatch(
string filePath
)
public:
void PopulatePackageFromWindowsInstallerPatch(
String^ filePath
)
member PopulatePackageFromWindowsInstallerPatch :
filePath:string -> unit
Public Sub PopulatePackageFromWindowsInstallerPatch (
filePath As String
)
Parameters
filePath
Type: System.StringThe path of the MSP file.
Exceptions
Exception
Condition
This package is not empty, or else a Populate() method has been called previously.
filePath is null.
filePath could not be found.
filePath does not contain a valid MSP file.
There was a failure extracting data from the MSP package.
See Also
SoftwareDistributionPackage Class
Microsoft.UpdateServices.Administration Namespace
Return to top