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,
	int userID,
	string displayName
)
Visual Basic
Protected Function BuildKey ( 
	allowAccess As Boolean,
	permissionId As Integer,
	objectPermissionId As Integer,
	roleId As Integer,
	roleName As String,
	userID As Integer,
	displayName 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
userID
Type: System..::..Int32
The user id
displayName
Type: System..::..String
The user display name

Return Value

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

See Also