Click or drag to resize
UIElementAttribute Class
Initializes page with license and security checks. Performs redirect if security check fails. Works only with pages inherited from CMSPage class.
Inheritance Hierarchy

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 12.0.0
Syntax
C#
public class UIElementAttribute : AbstractAttribute, 
	ICMSSecurityAttribute, ICMSAttribute

The UIElementAttribute type exposes the following members.

Constructors
  NameDescription
Public methodUIElementAttribute(String, String)
Constructor.
Public methodUIElementAttribute(String, String, Boolean, Boolean)
Constructor.
Top
Properties
  NameDescription
Public propertyCheckPermissions
Indicates whether permission should be checked (incl. UI personalization, Permissions, Resource on site)
Public propertyContainsMacro
If true, the attribute contains macros
(Inherited from AbstractAttribute.)
Public propertyElementName
UI Element name
Public propertyExistingObject
If True, attribute is applied only when edited object is defined.
(Inherited from AbstractAttribute.)
Public propertyNewObject
If True, attribute is applied only when edited object is not defined.
(Inherited from AbstractAttribute.)
Public propertyResourceName
Resource name
Public propertyValidateDialogHash
Indicates whether hash for dialogs should be validated (use only for legacy pages)
Top
Methods
  NameDescription
Public methodCheck
Initializes page with license and security checks. Performs redirect if security check fails.
Protected methodCheckEditedObject
Returns True if attribute should be applied. Evaluation is based on the edited object existence and ExistingObject and NewObject properties.
(Inherited from AbstractAttribute.)
Protected methodGetText
Gets the text for the element.
(Inherited from AbstractAttribute.)
Protected methodGetUrl
Transforms the URL to the correct format.
(Inherited from AbstractAttribute.)
Protected methodResolve
Resolves the give text.
(Inherited from AbstractAttribute.)
Top
See Also