SPAppRequestContext.IsAppEnabled method

Indicates whether the app is enabled.

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

Syntax

'Declaration
Public Function IsAppEnabled ( _
    serviceContext As SPServiceContext _
) As Boolean
'Usage
Dim instance As SPAppRequestContext
Dim serviceContext As SPServiceContext
Dim returnValue As Boolean

returnValue = instance.IsAppEnabled(serviceContext)
public bool IsAppEnabled(
    SPServiceContext serviceContext
)

Parameters

Return value

Type: System.Boolean
true if the app is enabled in the tenant, otherwise false.

See also

Reference

SPAppRequestContext class

SPAppRequestContext members

Microsoft.SharePoint namespace