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
serviceContext
Type: Microsoft.SharePoint.SPServiceContextThe service context.
Return value
Type: System.Boolean
true if the app is enabled in the tenant, otherwise false.