SPTenantAdmin.IsCurrentUserTenantAdministrator method
Specifies whether the current user is a tenant administrator in the current site subscription.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function IsCurrentUserTenantAdministrator As Boolean
'Usage
Dim returnValue As Boolean
returnValue = SPTenantAdmin.IsCurrentUserTenantAdministrator()
public static bool IsCurrentUserTenantAdministrator()
Return value
Type: System.Boolean
true if the current user is a tenant administrator, otherwise false.