SPSecurity members
Provides static security management properties and methods.
The SPSecurity type exposes the following members.
Properties
Name | Description | |
---|---|---|
AuthenticationMode | Gets the user authentication mode for the SharePoint deployment. | |
CatchAccessDeniedException | Gets or sets a value indicating whether "access denied" exceptions within page requests are caught and handled by Microsoft SharePoint Foundation 2010. | |
WebConfigAllowsAnonymous | Gets a value indicating whether anonymous users can access the current Microsoft SharePoint Foundation 2010 site. |
Top
Methods
Name | Description | |
---|---|---|
CreateAppPrincipalSuppressionScope | Creates a scope where the app principal is suppressed and the app principal permission is not applied. | |
RunWithElevatedPrivileges | Executes the specified method with Full Control rights even if the user does not otherwise have Full Control. | |
SetApplicationCendentialKey | Obsolete. Do not use. Use SetApplicationCredentialKey(SecureString) instead. | |
SetApplicationCredentialKey | Sets a string that is used in encrypting and decrypting passwords. |
Top