Sends a Message stanza with the specified attributes and content to the
server.
Namespace: S22.Xmpp.CoreAssembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public void SendMessage( Jid to = null, Jid from = null, XmlElement data = null, string id = null, CultureInfo language = null ) |
Parameters
- to (Optional)
- Type: S22.Xmpp..::..Jid
The JID of the intended recipient for the stanza.
- from (Optional)
- Type: S22.Xmpp..::..Jid
The JID of the sender.
- data (Optional)
- Type: System.Xml..::..XmlElement
he content of the stanza.
- id (Optional)
- Type: System..::..String
The ID of the stanza.
- language (Optional)
- Type: System.Globalization..::..CultureInfo
The language of the XML character data of the stanza.
Exceptions
Exception | Condition |
---|---|
System..::..ObjectDisposedException | The XmppCore object has been disposed. |
System..::..InvalidOperationException | The XmppCore instance is not connected to a remote host. |
System.IO..::..IOException | There was a failure while writing to the network. |