DesignPackage.Export method (SPSite, Boolean)
Exports the design of the root web of the specified site.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Function Export ( _
site As SPSite, _
includeSearchConfiguration As Boolean _
) As DesignPackageInfo
'Usage
Dim site As SPSite
Dim includeSearchConfiguration As Boolean
Dim returnValue As DesignPackageInfo
returnValue = DesignPackage.Export(site, includeSearchConfiguration)
public static DesignPackageInfo Export(
SPSite site,
bool includeSearchConfiguration
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteThe SPSite object to be exported.
includeSearchConfiguration
Type: System.Booleantrue if the search configuration should be exported; otherwise, false.
Return value
Type: Microsoft.SharePoint.Publishing.DesignPackageInfo
Exceptions
Exception | Condition |
---|---|
System.ArgumentNullException | Site parameter should not be null. |