Builds the key used to store the "permission" information in the ViewState

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

Syntax

C#
protected string BuildKey(
	bool allowAccess,
	int permissionId,
	int objectPermissionId,
	int roleId,
	string roleName
)
Visual Basic
Protected Function BuildKey ( 
	allowAccess As Boolean,
	permissionId As Integer,
	objectPermissionId As Integer,
	roleId As Integer,
	roleName As String
) As String

Parameters

allowAccess
Type: System..::..Boolean
The type of permission ( grant / deny )
permissionId
Type: System..::..Int32
The Id of the permission
objectPermissionId
Type: System..::..Int32
The Id of the object permission
roleId
Type: System..::..Int32
The role id
roleName
Type: System..::..String
The role name

Return Value

returnsM:DotNetNuke.Security.Permissions.Controls.PermissionsGrid.BuildKey(System.Boolean,System.Int32,System.Int32,System.Int32,System.String)

See Also