SPSecurityContext class
提供包含屬性和方法來使用目前使用者的安全性內容的靜態公用程式類別。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.SPSecurityContext
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<PermissionSetAttribute(SecurityAction.Assert, Name := "FullTrust")> _
Public NotInheritable Class SPSecurityContext
'用途
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.