示例#1
0
 /// <summary>
 /// Adds a new message to the message handle. If the current active message is empty it will be reused to carry this new message.
 /// </summary>
 /// <param name="insref">The reference for the instrument for which the message is created for.</param>
 /// <param name="mref">The type of the message to create.</param>
 /// <returns><see langword="true" /> if a new message was added to the message handle (or an empty message was reused) or <see langword="false" /> if there was an error.</returns>
 /// <exception cref="ObjectDisposedException">The <see cref="Message"/> instance has been disposed.</exception>
 /// <remarks>The corresponding native function is mdf_message_add.</remarks>
 public bool Add(ulong insref, int mref)
 {
     ThrowIfDisposed();
     return(_nativeImplementation.mdf_message_add(Handle, insref, mref) == 1);
 }