HasTabPermission checks whether the current user has a specific Tab Permission

Namespace: DotNetNuke.Security.Permissions
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static bool HasTabPermission(
	TabPermissionCollection tabPermissions,
	string permissionKey
)
Visual Basic
Public Shared Function HasTabPermission ( 
	tabPermissions As TabPermissionCollection,
	permissionKey As String
) As Boolean

Parameters

tabPermissions
Type: DotNetNuke.Security.Permissions..::..TabPermissionCollection
The Permissions for the Tab
permissionKey
Type: System..::..String
The Permission(s) to check

Return Value

returnsM:DotNetNuke.Security.Permissions.TabPermissionController.HasTabPermission(DotNetNuke.Security.Permissions.TabPermissionCollection,System.String)

Remarks

If you pass in a comma delimited list of permissions (eg "ADD,DELETE", this will return true if the user has any one of the permissions.

See Also