DataValue Members
- Mise à jour2023-02-21
- Temps de lecture : 4 minute(s)
The DataValue type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Clone | Creates a new object that is a copy of the current data resource. (Inherited from DataResource.) | |
| Equals | Overloaded.
Returns a value indicating whether this instance is equal to the specified DataResource object. This method uses Type and Units to determine equivalency.
| |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetBytes | Returns the data value as an array of bytes. | |
| GetDataValueOfType | Returns a DataValue object with the specified data type. | |
| GetHashCode | Serves as a hash function for a DataValue object. The hash code this method returns is suitable for use in hashing algorithms and data structures like a hash table. (Overrides Object.GetHashCode().) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetBytes | Sets the DataValue based on Bytes. This is an abstract declaration only. Derived classes must implement the correct SetBytes method for that class. | |
| ToBestInt | Returns a DataValue object representing an I32Value, U32Value, I64Value, or U64Value. | |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| Size | Gets the size of the data value. | |
| Type | Gets the data type of the data value. | |
| Units | Gets or sets the units of the data value. Units can be any string that makes sense for the data value. |
Events
| Name | Description | |
|---|---|---|
| PropertyChanged | Occurs when a property value changes. (Inherited from DataResource.) |