DesignPackage.Apply method
Applies the specified design package to a site.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Sub Apply ( _
site As SPSite, _
info As DesignPackageInfo _
)
'Usage
Dim site As SPSite
Dim info As DesignPackageInfoDesignPackage.Apply(site, info)
public static void Apply(
SPSite site,
DesignPackageInfo info
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteThe SPSite object into which to apply the design package.
info
Type: Microsoft.SharePoint.Publishing.DesignPackageInfoThe design package to apply.
Exceptions
Exception | Condition |
---|---|
System.ArgumentNullException | Site parameter should not be null. |
Remarks
The design package can only be applied after it is installed.