Partilhar via


SPSecurityTrimmedControl.PermissionContext Property

Gets or sets the PermissionContext.

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

Syntax

'Declaration
Public Property PermissionContext As PermissionContext
    Get
    Set
'Usage
Dim instance As SPSecurityTrimmedControl
Dim value As PermissionContext

value = instance.PermissionContext

instance.PermissionContext = value
public PermissionContext PermissionContext { get; set; }

Property Value

Type: Microsoft.SharePoint.Utilities.PermissionContext

Remarks

Possible values are:

  • PermissionContext.CurrentFolder

  • PermissionContext.CurrentItem

  • PermissionContext.CurrentList

  • PermissionContext.CurrentSite

  • PermissionContext.RootSite

See Also

Reference

SPSecurityTrimmedControl Class

SPSecurityTrimmedControl Members

Microsoft.SharePoint.WebControls Namespace