MenuItemTemplate.Permissions property

Sets or retrieves the permissions that are required to view the menu item.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property Permissions As SPBasePermissions
    Get
    Set
'Usage
Dim instance As MenuItemTemplate
Dim value As SPBasePermissions

value = instance.Permissions

instance.Permissions = value
public SPBasePermissions Permissions { get; set; }

Property value

Type: Microsoft.SharePoint.SPBasePermissions
An SPBasePermissions value that represents the permissions for the menu item.

Remarks

The PermissionMode property determines how permissions are applied to the menu item. If PermissionMode is set to "All", the user must have all of the specified permissions to view the menu item. If PermissionMode is set to "Any", the user needs only one of the specified permissions to view the menu.

The Permissions property is not compliant with the Common Language Specification (CLS). As a result, it cannot be set by using ASPX markup. Use the PermissionsString property to set the permissions for a menu item.

See also

Reference

MenuItemTemplate class

MenuItemTemplate members

Microsoft.SharePoint.WebControls namespace