SPSecurityTrimmedControl.Permissions property
Gets or sets the Permissions.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property Permissions As SPBasePermissions
Get
Set
'Usage
Dim instance As SPSecurityTrimmedControl
Dim value As SPBasePermissions
value = instance.Permissions
instance.Permissions = value
public SPBasePermissions Permissions { get; set; }
Property value
Type: Microsoft.SharePoint.SPBasePermissions
Remarks
See SPBasePermissions enumeration for a listing of possible values.
Examples
<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="AddAndCustomizePages">
Insert text or HTMl in this section. This will be visible only to users having the AddAndCustomizePages permission
</SharePoint:SPSecurityTrimmedControl>
See also
Reference
SPSecurityTrimmedControl class