Exemple #1
0
 /// <summary>
 /// Adds a time field to the current active message. Please note that all times and dates are expressed in UTC. If <paramref name="millisecond"/> is set to 0 the timestamp is encoded as "HH:MM:SS".
 /// </summary>
 /// <param name="tag">The field tag.</param>
 /// <param name="hour">The hour.</param>
 /// <param name="minute">The minute.</param>
 /// <param name="second">The second.</param>
 /// <param name="millisecond">The millisecond.</param>
 /// <returns><see langword="true" /> if the field was successfully added, or <see langword="false" /> if the value could not be added (because there was no more memory, the message handle does not contain any messages, or the supplied value is not of the type specified).</returns>
 /// <exception cref="InvalidOperationException">The installed version of the native library doesn't include the mdf_message_add_time2 function.</exception>
 /// <exception cref="ObjectDisposedException">The <see cref="Message"/> instance has been disposed.</exception>
 /// <remarks>The corresponding native function is mdf_message_add_time2.</remarks>
 public bool AddTime2(uint tag, int hour, int minute, int second, int millisecond)
 {
     ThrowIfDisposed();
     return(_nativeImplementation.mdf_message_add_time2(Handle, tag, hour, minute, second, millisecond) == 1);
 }