Compartilhar via


ListFormWebPart.HideIfNoPermissions Property

Gets or sets a value to indicate whether the ListFormWebPart should be hidden if the user does not have rights to perform the related task on the list data.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property HideIfNoPermissions As Boolean
    Get
    Set
'Usage
Dim instance As ListFormWebPart
Dim value As Boolean

value = instance.HideIfNoPermissions

instance.HideIfNoPermissions = value
[BrowsableAttribute(false)]
[WebPartStorageAttribute(Storage.Shared)]
public bool HideIfNoPermissions { get; set; }

Property Value

Type: System.Boolean
true if the current user does not have rights for the related list data; otherwise, false.

See Also

Reference

ListFormWebPart Class

ListFormWebPart Members

Microsoft.SharePoint.WebPartPages Namespace