Site.RunUpgradeSiteSession 方法
Either runs a site collection upgrade, or schedules it to be run in the future, depending on available system resources and the value of the queueOnly parameter.The user executing this method MUST be a farm administrator or a site collection administrator.
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)
语法
声明
Public Sub RunUpgradeSiteSession ( _
versionUpgrade As Boolean, _
queueOnly As Boolean, _
sendEmail As Boolean _
)
用法
Dim instance As Site
Dim versionUpgrade As Boolean
Dim queueOnly As Boolean
Dim sendEmail As Boolean
instance.RunUpgradeSiteSession(versionUpgrade, _
queueOnly, sendEmail)
public void RunUpgradeSiteSession(
bool versionUpgrade,
bool queueOnly,
bool sendEmail
)
参数
versionUpgrade
类型:System.BooleanIf true, specifies that a version-to-version upgrade will be performed. If false, specifies that a build-to-build upgrade will be performed.
queueOnly
类型:System.BooleanIf true, specifies that the upgrade will not be run immediately; it will be queued for a later run.
sendEmail
类型:System.BooleanIf true, a notification email will be sent to the requestor and the site collection administrators at the completion of the site collection upgrade. If false, such notification will not be sent.