Share via


SPUpgradeJobDefinition.Object Property

Gets or sets the object to be upgraded.

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

Syntax

Public Property Object As SPPersistedObject
    Get
    Set

Dim instance As SPUpgradeJobDefinition
Dim value As SPPersistedObject

value = instance.Object

instance.Object = value
public SPPersistedObject Object { get; set; }

Property Value

Type: Microsoft.SharePoint.Administration.SPPersistedObject
An object of type SPPersistedObject.

Exceptions

Exception Condition
InvalidOperationException

The value of the Mode property specifies an upgrade mode that is not appropriate for this object.

Remarks

If the value of the Mode property is Mode.InPlace, then the object must implement the IUpgradable interface. If the value of the Mode property is Mode.SideBySide, the object must implement the IMigratable interface.

Important

After setting this property, call the Update() method to save the change.

See Also

Reference

SPUpgradeJobDefinition Class

SPUpgradeJobDefinition Members

Microsoft.SharePoint.Administration Namespace

Mode

Other Resources

Upgrade Overview