Value Class
Represents a value of any ValueType.
Inheritance Hierarchy
System.Object
TcHmiSrv.IObject
TcHmiSrv.Value
Namespace: TcHmiSrv
Assembly: TcHmiSrvExtNet (in
TcHmiSrvExtNet.dll) Version: 3.0.0.0
Syntax
C#
public class Value : IObject, IEquatable<Value>,
ICollection, IEnumerable, IConvertible, IDictionary, IDictionary<string, Value>,
ICollection<KeyValuePair<string, Value>>, IEnumerable<KeyValuePair<string, Value>>,
IList<Value>, ICollection<Value>, IEnumerable<Value>,
IReadOnlyCollection<Value>, IReadOnlyDictionary<string, Value>,
IReadOnlyCollection<KeyValuePair<string, Value>>, IVersionable
The Value type exposes the following members.
Constructors
|
Name |
Description |
---|---|---|
|
Initializes a new instance of the Value class. | |
|
Initializes a new instance of the Value class with the specified Access. | |
|
Initializes a new instance of the Value class with the specified instance of the Alarm class. | |
|
Initializes a new instance of the Value class with the specified instance of the Binary class. | |
|
Initializes a new instance of the Value class with the specified boolean value. | |
|
Initializes a new instance of the Value class with the specified double-precision floating-point number. | |
|
Initializes a new instance of the Value class with the specified instance of the Event class. | |
|
Initializes a new instance of the Value class with the specified integer. | |
|
Initializes a new instance of the Value class with the specified long integer. | |
|
Initializes a new instance of the Value class with the specified instance of the Message class. | |
|
Initializes a new instance of the Value class with the specified Severity. | |
|
Initializes a new instance of the Value class with the specified string. | |
|
Initializes a new instance of the Value class with the specified instance of the Timespan class. | |
|
Initializes a new instance of the Value class with the specified instance of the Timestamp class. | |
|
Initializes a new instance of the Value class based on another Value. | |
|
Initializes a new instance of the Value class with the specified ValueType. |
Properties
|
Name |
Description |
---|---|---|
|
A ValueIterator to the begin of the map. | |
|
A ValueVectorIterator to the begin of the vector. | |
|
Gets the number of the Values contained in the Value. | |
|
Gets a value that indicates whether the Value is empty. | |
|
A ValueIterator to the end of the map. | |
|
A ValueVectorIterator to the end of the vector. | |
| ||
|
Gets a value that indicates whether the Value is read-only. | |
|
Gets a value that indicates whether the Value is set. | |
| ||
|
Gets or sets the Value at the specified index. | |
|
Gets or sets the Value with the specified key. | |
|
Gets an ICollection.T. containing the keys of the Value. | |
|
Gets the number of Values in the map or vector. | |
| ||
|
Gets or sets the type of the Value. If the ValueType is different from the old ValueType all data will be cleared. | |
|
Gets an ICollection.T. containing the Values in the Value. |
Methods
|
Name |
Description |
---|---|---|
|
Adds a Value to the end of the vector. | |
|
Adds a KeyValuePair.TKey, TValue. to the Value. | |
|
Adds a Value to the Value. | |
|
Adds a Value with the specified key to the Value. | |
|
Removes all Values from the map or vector. | |
|
Removes all Values from the Value. | |
|
Determines whether the Value contains the specified KeyValuePair.TKey, TValue.. | |
|
Determines whether the Value contains the specified Value. | |
|
Determines whether the Value contains a Value with the specified key. | |
|
Tries to convert the Value to another ValueType. If conversion fails, the Value will remain unchanged. Available conversions are: - int to double - double to int if there are no fractional digits - string containing number to double or int - string containing "true" or "false" to boolean - string in ISO-8601 to timestamp - string in base64 to binary - string in base64 containing 64 bit integer to int64 - struct to alarm - struct to message - struct to event - map to vector - struct to vector | |
|
Copies the KeyValuePair.TKey, TValue.s of the Value to an Array starting at the specified Array index. | |
|
Copies the Values of the Value to an Array starting at the specified Array index. | |
|
(Inherited from IObject.) | |
|
Releases the unmanaged resources used by the Value and optionally releases the managed resources (Overrides IObject.Dispose(Boolean).) | |
|
Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
|
Indicates whether the current Value is equal to another Value. | |
|
(Inherited from IObject.) | |
|
Finds a Value with the specified key in the map. | |
|
Finds a Value with the specified index in the vector. | |
|
Serves as the default hash function. (Inherited from Object.) | |
|
Gets the Type of the current instance. (Inherited from Object.) | |
|
Gets the TypeCode for this Value. | |
|
Determines the index of the specific Value in the Value. | |
|
Inserts a String with the specified key in the map. | |
|
Inserts a Value with the specified key in the map. | |
|
Inserts a Value at the specified position in the vector. | |
|
Inserts a Value to the Value at the specified index. | |
|
Inserts or updates a String with the specified key in the map. | |
|
Inserts or updates a Value with the specified key in the map. | |
|
Creates a shallow copy of the current Object. (Inherited from Object.) | |
|
Removes a Value at the specified index from the vector. | |
|
Removes a Value at the specified position from the map. | |
|
Removes a Value at the specified position from the vector. | |
|
Removes a range of Values from the vector. | |
|
Removes the first occurrence of the specified KeyValuePair.TKey, TValue. from the Value. | |
|
Removes the Value with the specified key from the Value. | |
|
Removes the first occurrence of the specified Value from the Value. | |
|
Removes the Value at the specified index of the Value. | |
|
Removes a range of Values from the Value. | |
|
Reserves memory for a number of Values to reduce memory allocations. | |
|
Sets the Value to the specified Access. | |
|
Sets the Value to the specified instance of the Alarm class. | |
|
Sets the Value to the specified instance of the Binary class. | |
|
Sets the Value to the specified boolean value. | |
|
Sets the Value to the specified double-precision floating-point number. | |
|
Sets the Value to the specified instance of the Event class. | |
|
Sets the Value to the specified integer. | |
|
Sets the Value to the specified long integer. | |
|
Sets the Value to the specified instance of the Message class. | |
|
Sets the Value to the specified Severity. | |
|
Sets the Value to the specified string. | |
|
Sets the Value to the specified instance of the Timespan class. | |
|
Sets the Value to the specified instance of the Timestamp class. | |
|
Sets the Value to the specified ValueType. | |
|
Exchanges the values of two instances of the Value class. | |
|
Converts the Value to an equivalent Boolean value using the specified IFormatProvider. | |
|
Converts the Value to an equivalent Byte using the specified IFormatProvider. | |
|
Converts the Value to an equivalent Char using the specified IFormatProvider. | |
|
Converts the Value to an equivalent DateTime using the specified IFormatProvider. | |
|
Converts the Value to an equivalent Decimal value using the specified IFormatProvider. | |
|
Converts the Value to an equivalent Double-precision floating-point number using the specified IFormatProvider. | |
|
Converts the Value to an equivalent Int16 integer using the specified IFormatProvider. | |
|
Converts the Value to an equivalent Int32 using the specified IFormatProvider. | |
|
Converts the Value to an equivalent Int64 integer using the specified IFormatProvider. | |
|
Converts the Value to an equivalent SByte using the specified IFormatProvider. | |
|
Converts the Value to an equivalent Single-precision floating-point number using the specified IFormatProvider. | |
|
Returns a string that represents the current object. (Inherited from Object.) | |
|
Converts the Value to an equivalent String using the specified IFormatProvider. | |
|
Converts the Value to an equivalent Object of the specified Type using the specified IFormatProvider. | |
|
Converts the Value to an equivalent UInt16 integer using the specified IFormatProvider. | |
|
Converts the Value to an equivalent UInt32 using the specified IFormatProvider. | |
|
Converts the Value to an equivalent UInt64 integer using the specified IFormatProvider. | |
|
Gets the Value associated with the specified key. |
Operators
|
Name |
Description |
---|---|---|
|
Determines whether the specified Value is equal to the current Value. | |
|
Converts an Access to the appropriate instance of the Value class. | |
|
Converts an Alarm to the appropriate instance of the Value class. | |
|
Converts an instance of the Binary class to the appropriate instance of the Value class. | |
|
Converts a Boolean value to the appropriate instance of the Value class. | |
|
Converts an Byte to the appropriate instance of the Value class. | |
|
Converts a Char to the appropriate instance of the Value class. | |
|
Converts a Double-precision floating-point number to the appropriate instance of the Value class. | |
|
Converts an Event to the appropriate instance of the Value class. | |
|
Converts an Int16 to the appropriate instance of the Value class. | |
|
Converts an Int32 to the appropriate instance of the Value class. | |
|
Converts a Int64 to the appropriate instance of the Value class. | |
|
Converts an Message to the appropriate instance of the Value class. | |
|
Converts an SByte to the appropriate instance of the Value class. | |
|
Converts a Severity to the appropriate instance of the Value class. | |
|
Converts a Single-precision floating-point number to the appropriate instance of the Value class. | |
|
Converts a String to the appropriate instance of the Value class. | |
|
Converts an instance of the Timespan class to the appropriate instance of the Value class. | |
|
Converts an instance of the Timestamp class to the appropriate instance of the Value class. | |
|
Converts an UInt16 to the appropriate instance of the Value class. | |
|
Converts an UInt32 to the appropriate instance of the Value class. | |
|
Converts a UInt64 to the appropriate instance of the Value class. | |
|
Converts an instance of the Value class to the appropriate Boolean value. | |
|
Converts an instance of the Value class to the appropriate Byte. | |
|
Converts an instance of the Value class to the appropriate Char. | |
|
Converts an instance of the Value class to the appropriate Double-precision floating-point number. | |
|
Converts an instance of the Value class to the appropriate Int16. | |
|
Converts an instance of the Value class to the appropriate Int32. | |
|
Converts an instance of the Value class to the appropriate Int64. | |
|
Converts an instance of the Value class to the appropriate SByte. | |
|
Converts an instance of the Value class to the appropriate Single-precision floating-point number. | |
|
Converts an instance of the Value class to the appropriate String. | |
|
Converts an instance of the Value class to the appropriate UInt16. | |
|
Converts an instance of the Value class to the appropriate UInt32. | |
|
Converts an instance of the Value class to the appropriate UInt64. | |
|
Converts an instance of the Value class to the appropriate Access. | |
|
Converts an instance of the Value class to the appropriate Alarm. | |
|
Converts an instance of the Value class to the appropriate instance of the Binary class. | |
|
Converts an instance of the Value class to the appropriate Event. | |
|
Converts an instance of the Value class to the appropriate Message. | |
|
Converts an instance of the Value class to the appropriate Severity. | |
|
Converts an instance of the Value class to the appropriate instance of the Timespan class. | |
|
Converts an instance of the Value class to the appropriate instance of the Timestamp class. | |
|
Converts an instance of the Value class to the appropriate ValueType. | |
|
Converts an ValueType to the appropriate instance of the Value class. | |
|
Determines whether the specified Value is not equal to the current Value. |