Click or drag to resize

PermissionLevelExtensionHasPermission Method

Namespace:  Dynamicweb.Security.Permissions
Assembly:  Dynamicweb.Security (in Dynamicweb.Security.dll) Version: 11.0.2
Syntax
public static bool HasPermission(
	this PermissionLevel ownedPermission,
	PermissionLevel requiredPermission
)

Parameters

ownedPermission
Type: Dynamicweb.Security.PermissionsPermissionLevel
requiredPermission
Type: Dynamicweb.Security.PermissionsPermissionLevel

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PermissionLevel. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also