Skip to content

ERPConnect.BW.PropertyCollection

Namespace: ERPConnect.BW
Assembly: ERPConnectStandard20.dll

A collection of property objects

public class PropertyCollection : CollectionBase, IList, ICollection, IEnumerable

Inheritance

objectCollectionBasePropertyCollection

Implements

IList, ICollection, IEnumerable

Inherited Members

CollectionBase.Clear(), CollectionBase.RemoveAt(int), CollectionBase.GetEnumerator(), CollectionBase.OnSet(int, object, object), CollectionBase.OnInsert(int, object), CollectionBase.OnClear(), CollectionBase.OnRemove(int, object), CollectionBase.OnValidate(object), CollectionBase.OnSetComplete(int, object, object), CollectionBase.OnInsertComplete(int, object), CollectionBase.OnClearComplete(), CollectionBase.OnRemoveComplete(int, object), CollectionBase.InnerList, CollectionBase.List, CollectionBase.Capacity, CollectionBase.Count, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

PropertyCollection()

Create a new PropertyCollection object

public PropertyCollection()

Properties

this[int]

Returns the property object at the given position

public virtual Property this[int Index] { get; set; }

Property Value

Property

this[string]

Returns the property object with the given name

public virtual Property this[string Name] { get; set; }

Property Value

Property

Methods

Add(Property)

Adds a Property object to the collection

public virtual void Add(Property NewParameter)

Parameters

NewParameter Property

The property object to be added

Add(string, string, string)

Creates a new Dimension property and adds it to the collection

public virtual Property Add(string Name, string Caption, string DataType)

Parameters

Name string

Name of the property

Caption string

Caption of the property

DataType string

Data type of the property

Returns

Property

The newly created Property object

Contains(string)

Checks, if there's a property with the name contained in the collection

public virtual bool Contains(string Name)

Parameters

Name string

Name of the property

Returns

bool

true / false

TryGetValue(string, out Property)

public bool TryGetValue(string name, out Property value)

Parameters

name string

value Property

Returns

bool