共用方式為


SPUpgradeJobDefinition class

代表SharePoint Foundation升級工作定義。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPJobDefinition
        Microsoft.SharePoint.Administration.SPAdministrationServiceJobDefinition
          Microsoft.SharePoint.Administration.SPUpgradeJobDefinition

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<GuidAttribute("3144ED38-69E9-46ec-B89F-3037F8FFD1A8")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPUpgradeJobDefinition _
    Inherits SPAdministrationServiceJobDefinition
'用途
Dim instance As SPUpgradeJobDefinition
[GuidAttribute("3144ED38-69E9-46ec-B89F-3037F8FFD1A8")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPUpgradeJobDefinition : SPAdministrationServiceJobDefinition

備註

此類別的執行個體用來代表升級與相關聯的工作定義。此類別被衍生自SPJobDefinition類別。SPUpgradeJobDefinition物件可以出現在SPTimerService物件相關聯的SPJobDefinitionCollection物件。

若要建立SPUpgradeJobDefinition類別的執行個體使用建構函式。藉由設定Object屬性指定升級的根物件。指定將Mode屬性設定為就地升級的模式。將它新增至工作佇列呼叫Add方法的適當工作定義集合。

當執行升級的計時器工作時,您可以使用此工作相關聯的SPUpgradeSession物件来監視進度。若要取得的物件識別碼, SessionId屬性來擷取SPUpgradeSession物件,然後呼叫 [ **GetObject()**以取得的物件。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPUpgradeJobDefinition members

Microsoft.SharePoint.Administration namespace

Microsoft.SharePoint.Upgrade.SPManager

SPJobDefinition

其他資源

Upgrade Overview

Upgrade Definition Files