Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPUtility.EnsureSiteAdminAccess method

Determines whether the current user is a site administrator on the specified site and, if not, requests a user name and password, and then opens the Error page for an “access denied” exception so that the user must request access to the site or list from the owner.

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

public static void EnsureSiteAdminAccess(
	SPWeb web


Type: Microsoft.SharePoint.SPWeb

An Microsoft.SharePoint.SPWeb object that represents the site.

© 2015 Microsoft