IWebProjectManager.UninstallPackage Method
Removes the package references from the project.
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Namespace: System.Web.WebPages.Administration.PackageManager
Assembly: System.Web.WebPages.Administration (in System.Web.WebPages.Administration.dll)
Syntax
'Declaration
Function UninstallPackage ( _
package As IPackage, _
removeDependencies As Boolean _
) As IEnumerable(Of String)
'Usage
Dim instance As IWebProjectManager
Dim package As IPackage
Dim removeDependencies As Boolean
Dim returnValue As IEnumerable(Of String)
returnValue = instance.UninstallPackage(package, _
removeDependencies)
IEnumerable<string> UninstallPackage(
IPackage package,
bool removeDependencies
)
IEnumerable<String^>^ UninstallPackage(
IPackage^ package,
bool removeDependencies
)
abstract UninstallPackage :
package:IPackage *
removeDependencies:bool -> IEnumerable<string>
function UninstallPackage(
package : IPackage,
removeDependencies : boolean
) : IEnumerable<String>
Parameters
- package
Type: IPackage
The package to remove.
- removeDependencies
Type: System.Boolean
true to remove package dependencies; otherwise, false.
Return Value
Type: System.Collections.Generic.IEnumerable<String>
The action logs during the uninstall operation.