SaaS CMS has officially launched! Learn more now.

Class MetaEnum

Represents access and manage methods for enumerations.

Inheritance
System.Object
MetaEnum
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation.Data.Meta.Management
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 11.8.3
Syntax
public static class MetaEnum

Methods

AddItem(MetaFieldType, Int32, String, Int32)

Adds the item.

Declaration
public static int AddItem(MetaFieldType type, int id, string friendlyName, int orderId)
Parameters
Type Name Description
MetaFieldType type

The type.

System.Int32 id

The id.

System.String friendlyName

Name of the friendly.

System.Int32 orderId

The order id.

Returns
Type Description
System.Int32

AddItem(MetaFieldType, String, Int32)

Adds the item.

Declaration
public static int AddItem(MetaFieldType type, string friendlyName, int orderId)
Parameters
Type Name Description
MetaFieldType type

The type.

System.String friendlyName

Name of the friendly.

System.Int32 orderId

The order id.

Returns
Type Description
System.Int32

ChangeOrder(MetaFieldType, Int32, Int32)

Changes the order.

Declaration
public static void ChangeOrder(MetaFieldType type, int Id, int order)
Parameters
Type Name Description
MetaFieldType type

The type.

System.Int32 Id

The id.

System.Int32 order

The order.

Create(String, String, Boolean)

Creates the specified type name.

Declaration
public static MetaFieldType Create(string TypeName, string FriendlyName, bool MultyValue)
Parameters
Type Name Description
System.String TypeName

Name of the type.

System.String FriendlyName

Name of the friendly.

System.Boolean MultyValue

Indicates if it is a multivalue enumeration.

Returns
Type Description
MetaFieldType

GetFriendlyName(MetaFieldType, Int32)

Gets the name of the friendly.

Declaration
public static string GetFriendlyName(MetaFieldType type, int Id)
Parameters
Type Name Description
MetaFieldType type

The type.

System.Int32 Id

The id.

Returns
Type Description
System.String

GetFriendlyNames(MetaFieldType)

Gets the friendly names.

Declaration
public static string[] GetFriendlyNames(MetaFieldType type)
Parameters
Type Name Description
MetaFieldType type

The type.

Returns
Type Description
System.String[]

GetFriendlyNames(MetaFieldType, Int32[])

Gets the friendly names.

Declaration
public static string[] GetFriendlyNames(MetaFieldType type, int[] values)
Parameters
Type Name Description
MetaFieldType type

The type.

System.Int32[] values

The values.

Returns
Type Description
System.String[]

GetItems(MetaFieldType)

Gets the items.

Declaration
public static MetaEnumItem[] GetItems(MetaFieldType type)
Parameters
Type Name Description
MetaFieldType type

The type.

Returns
Type Description
MetaEnumItem[]

GetValues(MetaFieldType)

Gets the values.

Declaration
public static int[] GetValues(MetaFieldType type)
Parameters
Type Name Description
MetaFieldType type

The type.

Returns
Type Description
System.Int32[]

IsUsed(MetaFieldType)

Determines whether the specified type is used.

Declaration
public static bool IsUsed(MetaFieldType type)
Parameters
Type Name Description
MetaFieldType type

The type.

Returns
Type Description
System.Boolean

true if the specified type is used; otherwise, false.

Remove(MetaFieldType)

Removes the specified type.

Declaration
public static void Remove(MetaFieldType type)
Parameters
Type Name Description
MetaFieldType type

The type.

RemoveItem(MetaFieldType, Int32)

Removes the item.

Declaration
public static void RemoveItem(MetaFieldType type, int Id)
Parameters
Type Name Description
MetaFieldType type

The type.

System.Int32 Id

The id.

RenameItem(MetaFieldType, Int32, String)

Renames the item.

Declaration
public static void RenameItem(MetaFieldType type, int Id, string friendlyName)
Parameters
Type Name Description
MetaFieldType type

The type.

System.Int32 Id

The id.

System.String friendlyName

Name of the friendly.

UpdateItem(MetaFieldType, Int32, String, Int32)

Updates the item.

Declaration
public static void UpdateItem(MetaFieldType type, int Id, string friendlyName, int orderId)
Parameters
Type Name Description
MetaFieldType type

The type.

System.Int32 Id

The id.

System.String friendlyName

Name of the friendly.

System.Int32 orderId

The order id.