Click or drag to resize
IsAuthorizedPerResourceAttribute Constructor
Creates permission attribute. Permission will be checked similarly to IsAuthorizedPerResource(String, String).

Namespace: CMS.WebApi
Assembly: CMS.WebApi (in CMS.WebApi.dll) Version: 13.0.131
Syntax
C#
public IsAuthorizedPerResourceAttribute(
	string resourceName,
	string permissionName,
	string message = ""
)

Parameters

resourceName
Type: SystemString
Resource name
permissionName
Type: SystemString
Permission name to check
message (Optional)
Type: SystemString
Error message, if null or empty DEFAULT_ERROR_MESSAGE is used
See Also