Share via


SPAppInstance.Disable method

Disables the app instance, leaving its components in place but setting them in a state where they cannot do damage.

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

Syntax

'Declaration
Public Function Disable As Guid
'Usage
Dim instance As SPAppInstance
Dim returnValue As Guid

returnValue = instance.Disable()
public Guid Disable()

Return value

Type: System.Guid
The job identifier of the disabled job.

Remarks

This method should be used when an app is malicious or dangerous but has important data that should not simply be deleted.

See also

Reference

SPAppInstance class

SPAppInstance members

Microsoft.SharePoint.Administration namespace