SPUpgradeJobDefinition.Object property

Gets or sets the object to be upgraded.

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

Syntax

'Declaration
Public Property Object As SPPersistedObject
    Get
    Set
'Usage
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