Compartilhar via


SPUpgradeJobDefinition.Mode Property

Gets or sets a value that indicates the type of upgrade that the current job defines.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property Mode As Mode
    Get
    Set
'Usage
Dim instance As SPUpgradeJobDefinition
Dim value As Mode

value = instance.Mode

instance.Mode = value
public Mode Mode { get; set; }

Property Value

Type: Microsoft.SharePoint.Upgrade.Mode
An Microsoft.SharePoint.Upgrade.Mode enumeration value.

Remarks

The default value is Microsoft.SharePoint.Upgrade.ModeInPlace.

Important

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

See Also

Reference

SPUpgradeJobDefinition Class

SPUpgradeJobDefinition Members

Microsoft.SharePoint.Administration Namespace

Object

Other Resources

Upgrade Overview