SPSecurity.CreateAppPrincipalSuppressionScope method

Creates a scope where the app principal is suppressed and the app principal permission is not applied.

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

Syntax

'Declaration
Public Shared Function CreateAppPrincipalSuppressionScope As IDisposable
'Usage
Dim returnValue As IDisposable

returnValue = SPSecurity.CreateAppPrincipalSuppressionScope()
public static IDisposable CreateAppPrincipalSuppressionScope()

Return value

Type: System.IDisposable
A disposable object to be used in using statement.

See also

Reference

SPSecurity class

SPSecurity members

Microsoft.SharePoint namespace