Click or drag to resize
AdministrationUrlHelperGetAccessDeniedUrl Method (String, String, String, String, String)
Gets the URL to Access denied page

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
public static string GetAccessDeniedUrl(
	string resourceName,
	string permissionName,
	string uiElementName,
	string message = null,
	string pageUrl = "~/CMSMessages/accessdenied.aspx"
)

Parameters

resourceName
Type: SystemString
Resource name that failed
permissionName
Type: SystemString
Permission name that failed
uiElementName
Type: SystemString
UI element name that failed
message (Optional)
Type: SystemString
Custom message to display
pageUrl (Optional)
Type: SystemString
Custom page URL to be used

Return Value

Type: String
See Also