Share via


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)

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