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

Class MetaViewPreference

Implements IMetaViewPreference. (Obsolete)

Inheritance
System.Object
MetaViewPreference
Implements
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: 12.17.2
Syntax
public class MetaViewPreference : IMetaViewPreference

Constructors

MetaViewPreference()

Initializes a new instance of the MetaViewPreference class.

Declaration
public MetaViewPreference()

Properties

Attributes

Gets the attributes.

Declaration
public AttributeCollection Attributes { get; set; }
Property Value
Type Description
AttributeCollection

The attributes.

Filters

Gets the filters.

Declaration
public virtual FilterElementCollection Filters { get; }
Property Value
Type Description
FilterElementCollection

The filters.

HidenFields

Gets the hiden fields.

Declaration
public List<string> HidenFields { get; }
Property Value
Type Description
System.Collections.Generic.List<System.String>

The hiden fields.

MetaView

Gets or sets the meta view.

Declaration
public MetaView MetaView { get; set; }
Property Value
Type Description
MetaView

The meta view.

Sorting

Gets the sorting.

Declaration
public virtual SortingElementCollection Sorting { get; }
Property Value
Type Description
SortingElementCollection

The sorting.

Methods

CompareMetaField(MetaField, MetaField)

Declaration
protected virtual int CompareMetaField(MetaField x, MetaField y)
Parameters
Type Name Description
MetaField x
MetaField y
Returns
Type Description
System.Int32

CreateAttributeKey(String, String)

Declaration
protected static string CreateAttributeKey(string fieldName, string attributeName)
Parameters
Type Name Description
System.String fieldName
System.String attributeName
Returns
Type Description
System.String

GetAttribute(String, String)

Gets the attribute.

Declaration
public object GetAttribute(string fieldName, string attributeName)
Parameters
Type Name Description
System.String fieldName

Name of the field.

System.String attributeName

Name of the attribute.

Returns
Type Description
System.Object

GetAttribute(String, String, Object)

Gets the attribute.

Declaration
public object GetAttribute(string fieldName, string attributeName, object defaultValue)
Parameters
Type Name Description
System.String fieldName

Name of the field.

System.String attributeName

Name of the attribute.

System.Object defaultValue

The default.

Returns
Type Description
System.Object

GetAttribute<T>(String, String)

Gets the attribute.

Declaration
public T GetAttribute<T>(string fieldName, string attributeName)
Parameters
Type Name Description
System.String fieldName

Name of the field.

System.String attributeName

Name of the attribute.

Returns
Type Description
T
Type Parameters
Name Description
T

GetAttribute<T>(String, String, T)

Gets the attribute.

Declaration
public T GetAttribute<T>(string fieldName, string attributeName, T defaultValue)
Parameters
Type Name Description
System.String fieldName

Name of the field.

System.String attributeName

Name of the attribute.

T defaultValue

The default.

Returns
Type Description
T
Type Parameters
Name Description
T

GetFilters()

Gets the filters.

Declaration
protected virtual FilterElementCollection GetFilters()
Returns
Type Description
FilterElementCollection

GetSorting()

Gets the sorting.

Declaration
protected virtual SortingElementCollection GetSorting()
Returns
Type Description
SortingElementCollection

GetVisibleMetaField()

Gets the visible meta field.

Declaration
public virtual MetaField[] GetVisibleMetaField()
Returns
Type Description
MetaField[]

HideMetaField(Int32)

Hides the meta field.

Declaration
public void HideMetaField(int Index)
Parameters
Type Name Description
System.Int32 Index

The index.

HideMetaField(String)

Hides the meta field.

Declaration
public void HideMetaField(string MetafieldName)
Parameters
Type Name Description
System.String MetafieldName

Name of the meta field.

SetAttribute<T>(String, String, T)

Sets the attribute.

Declaration
public bool SetAttribute<T>(string fieldName, string attributeName, T NewValue)
Parameters
Type Name Description
System.String fieldName

Name of the field.

System.String attributeName

Name of the attribute.

T NewValue

The new value.

Returns
Type Description
System.Boolean
Type Parameters
Name Description
T

ShowAllMetaField()

Shows all meta field.

Declaration
public void ShowAllMetaField()

ShowMetaField(String)

Shows the meta field.

Declaration
public void ShowMetaField(string MetafieldName)
Parameters
Type Name Description
System.String MetafieldName

Name of the meta field.

Explicit Interface Implementations

IMetaViewPreference.GetFilters()

Gets the filters.

Declaration
FilterElementCollection IMetaViewPreference.GetFilters()
Returns
Type Description
FilterElementCollection

IMetaViewPreference.GetSorting()

Gets the sorting.

Declaration
SortingElementCollection IMetaViewPreference.GetSorting()
Returns
Type Description
SortingElementCollection

IMetaViewPreference.GetVisibleMetaField()

Gets the visible meta field.

Declaration
MetaField[] IMetaViewPreference.GetVisibleMetaField()
Returns
Type Description
MetaField[]

Implements