IWebProjectManager.IsPackageInstalled Method

Checks whether the specified package exists in the local repository.

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 IsPackageInstalled ( _
    package As IPackage _
) As Boolean
'Usage
Dim instance As IWebProjectManager 
Dim package As IPackage 
Dim returnValue As Boolean 

returnValue = instance.IsPackageInstalled(package)
bool IsPackageInstalled(
    IPackage package
)
bool IsPackageInstalled(
    IPackage^ package
)
abstract IsPackageInstalled : 
        package:IPackage -> bool
function IsPackageInstalled(
    package : IPackage
) : boolean

Parameters

  • package
    Type: IPackage
    The package to look for.

Return Value

Type: System.Boolean
true if the package exists in the local repository; otherwise, false.

See Also

Reference

IWebProjectManager Interface

System.Web.WebPages.Administration.PackageManager Namespace