Share via


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

  • path
    Type: System.String

    The 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.

See also

Reference

DesignPackage class

DesignPackage members

Microsoft.SharePoint.Publishing namespace