SiemensDateTimeFromByteArray 方法 |
Parses a DateTime value from bytes.
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<DateTime> FromByteArray(
byte[] bytes
)
Public Shared Function FromByteArray (
bytes As Byte()
) As OperateResult(Of DateTime)
public:
static OperateResult<DateTime>^ FromByteArray(
array<unsigned char>^ bytes
)
static member FromByteArray :
bytes : byte[] -> OperateResult<DateTime>
参数
- bytes
- 类型:SystemByte
Input bytes read from PLC.
返回值
类型:
OperateResultDateTimeA
DateTime object representing the value read from PLC.
异常 异常 | 条件 |
---|
ArgumentOutOfRangeException | Thrown when the length of
bytes is not 8 or any value in bytes
is outside the valid range of values. |
参见