PropertyValuesContainer Class |
Namespace: Omada.OE.Model
[SerializableAttribute] public class PropertyValuesContainer : ICloneable
The PropertyValuesContainer type exposes the following members.
Name | Description | |
---|---|---|
![]() | PropertyValuesContainer(PropertyValuesContainer) |
Assigns property values from another container.
|
![]() | PropertyValuesContainer(DataObject, IEnumerableInt32) |
Creates a container with the property values for the "last version" of a data object.
|
![]() | PropertyValuesContainer(DataObject, IEnumerableString) |
Creates a container with the property and fixed field values for the "last version" of a data object.
|
![]() | PropertyValuesContainer(DataObjectVersion, IEnumerableInt32) |
Creates a container with the property values for a data object version.
|
![]() | PropertyValuesContainer(DataObjectVersion, IEnumerableString) |
Creates a container with the property and fixed field values for a data object version.
|
![]() | PropertyValuesContainer(IEnumerableBaseProperty, Boolean, Boolean) |
Name | Description | |
---|---|---|
![]() | Item |
Holds the property / fixed field values.
The data type of each value in the enumeration for an entry is determined by the property or fixed field:
Value property - Text: string Value property - Integer: int Value property - DateTime: DateTime Value property - Decimal: double Value property - Boolean: bool Value property - Hyperlink: string Value property - TimeSpan: TimeSpan Value property - MultiLangText: string Value property - Xml: string Set property: int Reference property: int CreateTime: DateTime ChangeTime: DateTime DeleteTime: DateTime ActiveTime: DateTime CompleteTime: DateTime FirstActiveTime: DateTime CreatedBy: int ChangedBy: int DeletedBy: int Number: int Type: int ActivityState: int ProcessState: int Acceptance: int ActPctComplete: int Id: int UserName: string DisplayName: string Template: bool Locked: bool ActivityAbsDuration: TimeSpan ActivityDuration: TimeSpan ProcessAbsDuration: TimeSpan ProcessDuration: TimeSpan A Value property can have zero or one value. Set- and Reference-properties can have zero or one value. Some Set- and Reference-properties also allow multiple values. Fixed fields can have zero or one value. Note that the container can be instantiated in a mode where all "set type" properties and fixed fields allow multiple values. For hyperlink properties the value is the url. For Multi Language Text properties the value is in the active users language. |
![]() | Keys |
Names of the contained properties and fixed fields.
|
Name | Description | |
---|---|---|
![]() | AllowsMultipleValues | |
![]() | AssignValues |
Adds/replaces the value(s) of a property.
|
![]() | Clone |
Makes a copy
|
![]() | Contains(Int32) |
Returns true if the container has an entry for a property.
Note: can't be used to query for a fixed field!
|
![]() | Contains(String) |
Returns true if the container has an entry for a property or fixed field.
|
![]() ![]() | ConvertToAssignableValue |
Converts a value to a format that can be assigned to the indexer property (or delivered to the AssignValues() method).
|
![]() | GetDataType |
Returns the data type that the value(s) for a property/field are expected to be of.
|
![]() | GetPropertyType |
Returns the property type of a specified key.
Throws if the key is not allowed in the container or if it doesn't denote a property (but a fixed field).
|
![]() | GetSingleValue(String) |
Returns a single value for a property.
If the property has no value(s) then null is returned.
|
![]() | GetSingleValueT(Int32, T) |
Returns a single value for a property (fixed fields are not supported by this method).
|
![]() | GetSingleValueT(String, T) |
Returns a single value for a property or a fixed field.
Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details.
|
![]() | HasEqualValues |
Returns whether the value(s) of a property are equal to the values of the same property in another container.
If the property contains multiple values then the order of them is considered insignificant.
|
![]() | IsProperty |
Returns true if the specified key denotes a property - false if it denotes a fixed field.
Throws if the key is not allowed in the container.
|
![]() | ToDictionary | |
![]() | ToListT(Int32) | |
![]() | ToListT(String) | |
![]() | ValueCount |
Returns the number of values that the container has for a property or fixed field.
|
Name | Description | |
---|---|---|
![]() | propertyValues |
Doesn't always contain an entry for all allowed properties and fixed fields.
Keys in the dictionary are property system names or fixed field names.
Values are collections of property values.
|
Name | Description | |
---|---|---|
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |