MenuItemTemplate.PermissionContext Property

Sets or retrieves the context of the permissions that are associated with the menu item.

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 MenuItemTemplate
Dim value As PermissionContext

value = instance.PermissionContext

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

Property Value

Type: Microsoft.SharePoint.Utilities.PermissionContext
A PermissionContext value that represents the permission context: "CurrentFolder", "CurrentItem", "CurrentList", "CurrentSite", or "RootSite". The default is "CurrentSite".

See Also

Reference

MenuItemTemplate Class

MenuItemTemplate Members

Microsoft.SharePoint.WebControls Namespace