PackageDependency.Delete Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
virtual void Delete() = Delete;
void Delete();
public void Delete();
function delete()
Public Sub Delete ()
Remarks
Removing a package dependency is typically done when an app is uninstalled. A package dependency is implicitly removed if its lifetime artifact (specified via the LifetimeArtifact property of the options parameter for the Create and CreateForSystem methods) is deleted. Package dependencies that are not referenced by other packages are elegible to be removed.
The caller of this function must have administrative privileges if the package dependency was created using the CreateForSystem method.