SPWebApplication.RemoveIdentityFromLocalGroups method
Removes the current application pool from local groups if it is not used by other Web applications on the server.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Protected Overridable Sub RemoveIdentityFromLocalGroups
'Usage
Me.RemoveIdentityFromLocalGroups()
protected virtual void RemoveIdentityFromLocalGroups()