AddStreamedValueToAll Method
- Last UpdatedAug 21, 2026
- 1 minute read
Use the AddStreamedValueAll() method to store real-time or late data values for a tag to the server.
'Declaration
Public Function AddStreamedValueToAll( _
ByVal streamedDataValue As HistorianDataValue, _
ByRef error As HistorianAccessError _
) As Boolean
'Usage
Dim instance As MultiHistorianAccess
Dim streamedDataValue As HistorianDataValue
Dim error As HistorianAccessError
Dim value As Boolean
value = instance.AddStreamedValueToAll(streamedDataValue, error)
public bool AddStreamedValueToAll(
HistorianDataValue streamedDataValue,
out HistorianAccessError error
)
public:
bool AddStreamedValueToAll(
HistorianDataValue^ streamedDataValue,
[Out] HistorianAccessError^ error
)
Parameters
- streamedDataValue
- The object of HistorianDataValue. Contains the VTQ for the tag to be stored.
- error
- The object of HistorianAccessError. Stored with the error information, if any.
Return Value
Returns the Historian error code.
Streamed original values are queued for storage by the AddStreamedValueAll() method. The AddStreamedValueAll() method adds the value to the delivery queue and returns immediately. Under certain circumstances it can return false with an error code when the value cannot be queued.
The HistorianDataValue class provides two constructors. One has no arguments and the other requires a tag key and a value type. If the value type does not match the tag type, the HCAL internally attempts to make a proper conversion. By default, the OPCQuality is set to 192 (good). On any error, it provides the error information.