DesignPackage.Install method
Installs a design package into a site.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Sub Install ( _
site As SPSite, _
info As DesignPackageInfo, _
path As String _
)
'Usage
Dim site As SPSite
Dim info As DesignPackageInfo
Dim path As StringDesignPackage.Install(site, info, path)
public static void Install(
SPSite site,
DesignPackageInfo info,
string path
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteThe SPSite object into which to install the package.
info
Type: Microsoft.SharePoint.Publishing.DesignPackageInfoThe design package information to be installed.
path
Type: System.StringThe design package path to be installed.
Exceptions
Exception | Condition |
---|---|
System.ArgumentNullException | All of the parameters should not be null. |
Remarks
The Install(SPSite, DesignPackageInfo, String) method imports a design package into a site. The design package must be applied to the target site after the installation is done.