Performs an IQ set/get request asynchronously and optionally invokes a
callback method when the IQ response comes in.
Namespace: S22.Xmpp.CoreAssembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- request
- Type: S22.Xmpp.Core..::..Iq
The IQ request to send.
- callback (Optional)
- Type: System..::..Action<(Of <(<'String, Iq>)>)>
A callback method which is invoked once the IQ response from the server comes in.
Return Value
The ID value of the pending IQ stanza request.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The request parameter is null. |
System..::..ArgumentException | The type parameter is not IqType.Set or IqType.Get. |
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. |