SiemensDateTimeToByteArray 方法 (DateTime) |
Converts an array of DateTime values to a byte array.
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static byte[] ToByteArray(
DateTime[] dateTimes
)
Public Shared Function ToByteArray (
dateTimes As DateTime()
) As Byte()
public:
static array<unsigned char>^ ToByteArray(
array<DateTime>^ dateTimes
)
static member ToByteArray :
dateTimes : DateTime[] -> byte[]
参数
- dateTimes
- 类型:SystemDateTime
The DateTime values to convert.
返回值
类型:
ByteA byte array containing the S7 date time representations of
dateTimes.
异常 异常 | 条件 |
---|
ArgumentOutOfRangeException | Thrown when any value of
dateTimes is before [P:SpecMinimumDateTime]
or after [P:SpecMaximumDateTime]. |
参见