DotMSN |

# NSMessage.GetBytes Method

Returns the NS message as a byte array. This can be directly send over a networkconnection. Remember to set the transaction ID before calling this method. Uses UTF8 Encoding. No MSG commands can be send to the NS, and is therefore not supported by this function. This function will add a \r\n at the end of the string, with the exception of a QRY command. Which does not work with a trailing \r\n.

[Visual Basic]
Overrides Public Function GetBytes() As Byte()
[C#]
public override byte[] GetBytes();

#### Return Value

#### See Also

NSMessage Class | XihSolutions.DotMSN.Core Namespace