OPC Studio User's Guide and Reference
FromBytes Method (_StreamLoader)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.IO.ComTypes Namespace > _StreamLoader Interface : FromBytes Method
The byte array to load the value from.

The value of this parameter cannot be null (Nothing in Visual Basic).

Loads a value from an array of bytes.
Syntax
'Declaration
 
<NotNullAttribute()>
Function FromBytes( _
   ByVal bytes As Object _
) As ValueResult
'Usage
 
Dim instance As _StreamLoader
Dim bytes As Object
Dim value As ValueResult
 
value = instance.FromBytes(bytes)
[NotNull()]
ValueResult FromBytes( 
   object bytes
)
[NotNull()]
ValueResult^ FromBytes( 
   Object^ bytes
) 

Parameters

bytes
The byte array to load the value from.

The value of this parameter cannot be null (Nothing in Visual Basic).

Return Value

Returns value result with the value loaded.

This method never returns null (Nothing in Visual Basic).

Remarks

This member or type is for use from COM. It is not meant to be used from .NET or Python. Refer to the corresponding .NET member or type instead, if you are developing in .NET or Python.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also