DesignPackage.Install 方法
将设计包安装到网站。
命名空间: Microsoft.SharePoint.Client.Publishing
程序集: Microsoft.SharePoint.Client.Publishing.Silverlight(位于 Microsoft.SharePoint.Client.Publishing.Silverlight.dll 中); Microsoft.SharePoint.Client.Publishing.Phone(位于 Microsoft.SharePoint.Client.Publishing.Phone.dll 中) Microsoft.SharePoint.Client.Publishing(位于 Microsoft.SharePoint.Client.Publishing.dll 中)
语法
声明
Public Shared Sub Install ( _
context As ClientRuntimeContext, _
site As Site, _
info As DesignPackageInfo, _
path As String _
)
用法
Dim context As ClientRuntimeContext
Dim site As Site
Dim info As DesignPackageInfo
Dim path As StringDesignPackage.Install(context, site, info, _
path)
public static void Install(
ClientRuntimeContext context,
Site site,
DesignPackageInfo info,
string path
)
参数
site
类型:Microsoft.SharePoint.Client.Site在其中安装包Site对象。
info
类型:Microsoft.SharePoint.Client.Publishing.DesignPackageInfo要安装的设计程序包信息。
path
类型:System.String要安装的设计包路径。
备注
Install(ClientRuntimeContext, Site, DesignPackageInfo, String)方法导入到网站的设计包。安装完成后,必须到目标网站应用设计包。