Share via


ConsoleNode.UserHasRights method

Determines whether the current user has rights to view this ConsoleNode object.

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

Syntax

'Declaration
Public Overridable Function UserHasRights As Boolean
'Usage
Dim instance As ConsoleNode
Dim returnValue As Boolean

returnValue = instance.UserHasRights()
public virtual bool UserHasRights()

Return value

Type: System.Boolean
A Boolean value representing whether this ConsoleNode should be available to the current user.

Remarks

If the user's rights can be defined on the basis of a bitwise AND of the SPBasePermissions object, you should not need to override this method. In contrast, you can specify any logic you need in this method call.

See also

Reference

ConsoleNode class

ConsoleNode members

Microsoft.SharePoint.Publishing.WebControls namespace