SPSecurityTrimmedControl class
SharePoint Online
Conditionally renders the contents of the control to the current user only if the current user has permissions defined in the PermissionString.
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
Microsoft.SharePoint.WebControls.SPSecurityTrimmedControl
Microsoft.SharePoint.WebControls.SPLinkButton
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
Microsoft.SharePoint.WebControls.SPSecurityTrimmedControl
Microsoft.SharePoint.WebControls.SPLinkButton
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
<SharePoint:SPSecurityTrimmedControl ID=”SPSecurityTrimmedControl1″
PermissionsString=”BrowseDirectories” runat=”server”>
<PublishingSiteAction:SiteActionMenu runat=”server” />
<wssuc:Welcome id=”explitLogout” runat=”server” />
<PublishingWebControls:AuthoringContainer ID=”authoringcontrols”
runat=”server”>
<PublishingConsole:Console runat=”server” />
</PublishingWebControls:AuthoringContainer>
</SharePoint:SPSecurityTrimmedControl>
Show: