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