November Happy Hour will be moved to Thursday December 5th.

Class MetaDictionary

Represents a MetaDictionary.

Inheritance
System.Object
System.Collections.ReadOnlyCollectionBase
MetaDictionary
Implements
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Collections.ReadOnlyCollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ReadOnlyCollectionBase.GetEnumerator()
System.Collections.ReadOnlyCollectionBase.InnerList
System.Collections.ReadOnlyCollectionBase.Count
System.Collections.ReadOnlyCollectionBase.System.Collections.ICollection.IsSynchronized
System.Collections.ReadOnlyCollectionBase.System.Collections.ICollection.SyncRoot
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.MetaDataPlus.Configurator
Assembly: Mediachase.MetaDataPlus.dll
Version: 12.17.2
Syntax
public class MetaDictionary : ReadOnlyCollectionBase, ICollection, IEnumerable

Constructors

MetaDictionary(MetaDataContext)

Initializes a new instance of the MetaDictionary class.

Declaration
protected MetaDictionary(MetaDataContext context)
Parameters
Type Name Description
MetaDataContext context

Properties

Item[Int32]

Gets the MetaDictionaryItem at the specified index.

Declaration
public MetaDictionaryItem this[int index] { get; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
MetaDictionaryItem

OwnerMetaFieldId

Gets the owner meta field id.

Declaration
public int OwnerMetaFieldId { get; }
Property Value
Type Description
System.Int32

The owner meta field id.

Methods

Add(MetaDictionaryItem)

Adds the specified item.

Declaration
public int Add(MetaDictionaryItem item)
Parameters
Type Name Description
MetaDictionaryItem item

The item.

Returns
Type Description
System.Int32

The Id of the added Dictionary Item

Add(String)

Adds the dictionary item.

Declaration
public int Add(string value)
Parameters
Type Name Description
System.String value

The value.

Returns
Type Description
System.Int32

The Id of the added Dictionary Item

Add(String, String)

Adds the dictionary item.

Declaration
public int Add(string defaultValue, string value)
Parameters
Type Name Description
System.String defaultValue

The default value.

System.String value

The value.

Returns
Type Description
System.Int32

The Id of the added Dictionary Item

Add(String, String, Object, Object)

Adds the dictionary item.

Declaration
public int Add(string defaultValue, string value, object defaultTag, object tag)
Parameters
Type Name Description
System.String defaultValue

The default value.

System.String value

The value.

System.Object defaultTag

The default tag.

System.Object tag

The tag.

Returns
Type Description
System.Int32

The Id of the added Dictionary Item

Add(String, String, Object, Object, MetaDataContext)

Adds the dictionary item.

Declaration
public int Add(string defaultValue, string value, object defaultTag, object tag, MetaDataContext context)
Parameters
Type Name Description
System.String defaultValue

The default value.

System.String value

The value.

System.Object defaultTag

The default tag.

System.Object tag

The tag.

MetaDataContext context

The context.

Returns
Type Description
System.Int32

The Id of the added Dictionary Item

Contains(Int32)

Determines whether [contains] [the specified meta dictionary item id].

Declaration
public bool Contains(int metaDictionaryItemId)
Parameters
Type Name Description
System.Int32 metaDictionaryItemId

The meta dictionary item id.

Returns
Type Description
System.Boolean

true if [contains] [the specified meta dictionary item id]; otherwise, false.

Contains(String)

Determines whether [contains] [the specified value].

Declaration
public bool Contains(string defaultValue)
Parameters
Type Name Description
System.String defaultValue

The default value.

Returns
Type Description
System.Boolean

true if [contains] [the specified value]; otherwise, false.

Delete(MetaDictionaryItem)

Deletes the specified item.

Declaration
public void Delete(MetaDictionaryItem item)
Parameters
Type Name Description
MetaDictionaryItem item

The item.

Delete(Int32)

Deletes the specified meta dictionary id.

Declaration
public void Delete(int metaDictionaryId)
Parameters
Type Name Description
System.Int32 metaDictionaryId

The meta dictionary id.

DeleteAt(Int32)

Deletes at.

Declaration
public void DeleteAt(int index)
Parameters
Type Name Description
System.Int32 index

The index.

GetItem(Int32)

Gets the item.

Declaration
public MetaDictionaryItem GetItem(int metaDictionaryItemId)
Parameters
Type Name Description
System.Int32 metaDictionaryItemId

The meta dictionary item id.

Returns
Type Description
MetaDictionaryItem

GetItem(String)

Gets the item.

Declaration
public MetaDictionaryItem GetItem(string defaultValue)
Parameters
Type Name Description
System.String defaultValue

The default value.

Returns
Type Description
MetaDictionaryItem

Load(MetaDataContext, MetaField)

Loads the specified field.

Declaration
public static MetaDictionary Load(MetaDataContext context, MetaField field)
Parameters
Type Name Description
MetaDataContext context

The context.

MetaField field

The field.

Returns
Type Description
MetaDictionary

Load(MetaDataContext, Int32)

Loads the specified meta field id.

Declaration
public static MetaDictionary Load(MetaDataContext context, int metaFieldId)
Parameters
Type Name Description
MetaDataContext context

The context.

System.Int32 metaFieldId

The meta field id.

Returns
Type Description
MetaDictionary

Update(Int32, String)

Updates the specified meta dictionary item id.

Declaration
public void Update(int metaDictionaryItemId, string value)
Parameters
Type Name Description
System.Int32 metaDictionaryItemId

The meta dictionary item id.

System.String value

The value.

Implements

System.Collections.ICollection
System.Collections.IEnumerable