Share via


SPSecurity Class

Provides static security management properties and methods.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.SPSecurity

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

Syntax

<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPSecurity

You do not need to declare an instance of a static class in order to access its members.
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public static class SPSecurity

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPSecurity Members

Microsoft.SharePoint Namespace