SPSecurityTrimmedControl.Permissions Property
Gets or sets the Permissions.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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