Initializes a new instance of the Message class.
Namespace: S22.Xmpp.ImAssembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public Message( Jid to, IDictionary<string, string> bodies, IDictionary<string, string> subjects = null, string thread = null, MessageType type = MessageType.Normal, CultureInfo language = null ) |
Parameters
- to
- Type: S22.Xmpp..::..Jid
The JID of the intended recipient.
- bodies
- Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, String>)>)>
A dictionary of message bodies. The dictionary keys denote the languages of the message bodies and must be valid ISO 2 letter language codes.
- subjects (Optional)
- Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, String>)>)>
A dictionary of message subjects. The dictionary keys denote the languages of the message subjects and must be valid ISO 2 letter language codes.
- 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
Exception | Condition |
---|---|
System..::..ArgumentNullException | The to parametr or the bodies parameter is null. |