Initializes a new instance of the Message class.

Namespace: S22.Xmpp.Im
Assembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public Message(
	Jid to,
	string body = null,
	string subject = null,
	string thread = null,
	MessageType type = MessageType.Normal,
	CultureInfo language = null
)

Parameters

to
Type: S22.Xmpp..::..Jid
The JID of the intended recipient.
body (Optional)
Type: System..::..String
The content of the message.
subject (Optional)
Type: System..::..String
The subject of the message.
thread (Optional)
Type: System..::..String
The conversation thread this message belongs to.
type (Optional)
Type: S22.Xmpp.Im..::..MessageType
The type of the message. Can be one of the values from the MessagType enumeration.
language (Optional)
Type: System.Globalization..::..CultureInfo
The language of the XML character data of the stanza.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe to parameter is null.
System..::..ArgumentExceptionThe body parameter is the empty string.

See Also