Click or drag to resize
EnumDataContainer Class
Provides wrapper for any Enum object for usage in the macro engine. Uses reflection to extract fields of the enum.
Inheritance Hierarchy
SystemObject
  CMS.BaseEnumDataContainer

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 9.0.0
Syntax
C#
public class EnumDataContainer : IDataContainer, 
	ISimpleDataContainer

The EnumDataContainer type exposes the following members.

Constructors
  NameDescription
Public methodEnumDataContainer
Creates new instance of enum container.
Top
Fields
  NameDescription
Protected fieldmColumnNames
Column names (enum items).
Protected fieldmEnumType
Type of the enum.
Top
Properties
  NameDescription
Public propertyColumnNames
Returns list of enumeration items.
Public propertyEnumType
Element type.
Public propertyItem
Returns the value of given enumeration item.
Top
Methods
  NameDescription
Public methodContainsColumn
Returns true if given name is within the enumeration items.
Public methodGetValue
Returns the value of given enumeration item.
Public methodSetValue
Not implemented, throws an exception.
Public methodTryGetValue
Returns the value of given enumeration item.
Top
Extension Methods
  NameDescription
Public Extension MethodCopyTo
Copies the data of specified columns of the source object to the target object.
(Defined by DataExtensions.)
Public Extension MethodCheckRequiredColumns
Returns true if given list of columns do not have null values in the object
(Defined by DataExtensions.)
Public Extension MethodToJSON
Returns JSON representation of current instance of IDataContainer.
(Defined by DataExtensions.)
Public Extension MethodToXML
Returns XML representation of current instance of IDataContainer.
(Defined by DataExtensions.)
Top
See Also