Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PackageDependencyContext.Remove 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.

Removes a resolved package dependency from the current process' package graph (that is, a run-time reference for a framework package dependency that was added by using the PackageDependency.Add method).

public:
 virtual void Remove() = Remove;
void Remove();
public void Remove();
function remove()
Public Sub Remove ()

Remarks

This method does not unload loaded resources such as DLLs. After removing a package dependency, any files loaded from the package can continue to be used. Future file resolution will fail to see the removed package dependency.

Successful calls to this method change the PackageDependency.GenerationId value.

Applies to


Feedback

Was this page helpful?