SPSecurityContext Class

Provides a static utility class that contains properties and methods to work with the security context of the current user.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.SPSecurityContext

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.Assert, Name := "FullTrust")> _
Public NotInheritable Class SPSecurityContext
'Usage
You do not need to declare an instance of a static class in order to access its members.
[PermissionSetAttribute(SecurityAction.Assert, Name = "FullTrust")]
public static class SPSecurityContext

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

SPSecurityContext Members

Microsoft.SharePoint Namespace