WebProjectManager.InstallPackage Method

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Installs the specified package to the local repository.

Namespace:  System.Web.WebPages.Administration.PackageManager
Assembly:  System.Web.WebPages.Administration (in System.Web.WebPages.Administration.dll)

Syntax

'Declaration
Public Function InstallPackage ( _
    package As IPackage, _
    appDomain As AppDomain _
) As IEnumerable(Of String)
'Usage
Dim instance As WebProjectManager 
Dim package As IPackage 
Dim appDomain As AppDomain 
Dim returnValue As IEnumerable(Of String)

returnValue = instance.InstallPackage(package, _
    appDomain)
public IEnumerable<string> InstallPackage(
    IPackage package,
    AppDomain appDomain
)
public:
virtual IEnumerable<String^>^ InstallPackage(
    IPackage^ package, 
    AppDomain^ appDomain
) sealed
abstract InstallPackage : 
        package:IPackage * 
        appDomain:AppDomain -> IEnumerable<string> 
override InstallPackage : 
        package:IPackage * 
        appDomain:AppDomain -> IEnumerable<string> 
public final function InstallPackage(
    package : IPackage, 
    appDomain : AppDomain
) : IEnumerable<String>

Parameters

  • package
    Type: IPackage
    The package to install.

Return Value

Type: System.Collections.Generic.IEnumerable<String>
The error logs from the install action.

Implements

IWebProjectManager.InstallPackage(IPackage, AppDomain)

See Also

Reference

WebProjectManager Class

System.Web.WebPages.Administration.PackageManager Namespace