Share via


SPGlobalAdmin.IsCurrentUserGlobalAdmin method

NOTE: This API is now obsolete.

In Windows SharePoint Services 2.0, the IsCurrentUserGlobalAdmin method returned a Boolean value that indicated whether the current user is a member of the SharePoint administrators group account in the SharePoint Foundation deployment, and is maintained for backward compatibility.

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

Syntax

'Declaration
<ObsoleteAttribute("This method is no longer necessary.", False)> _
Public Function IsCurrentUserGlobalAdmin As Boolean
'Usage
Dim instance As SPGlobalAdmin
Dim returnValue As Boolean

returnValue = instance.IsCurrentUserGlobalAdmin()
[ObsoleteAttribute("This method is no longer necessary.", false)]
public bool IsCurrentUserGlobalAdmin()

Return value

Type: System.Boolean
true if the current user is a global administrator; otherwise, false.

See also

Reference

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace