Performs an IQ set/get request and blocks until the response IQ comes in.
            
Namespace: S22.Xmpp.CoreAssembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# | 
|---|
public Iq IqRequest( IqType type, Jid to = null, Jid from = null, XmlElement data = null, CultureInfo language = null, int millisecondsTimeout = -1 )  | 
Parameters
- type
 - Type: S22.Xmpp.Core..::..IqType
The type of the request. This must be either IqType.Set or IqType.Get. 
- 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. 
- language (Optional)
 - Type: System.Globalization..::..CultureInfo
The language of the XML character data of the stanza. 
- millisecondsTimeout (Optional)
 - Type: System..::..Int32
The number of milliseconds to wait for the arrival of the IQ response or -1 to wait indefinitely. 
Return Value
The IQ response sent by the server.
Exceptions
| Exception | Condition | 
|---|---|
| System..::..ArgumentException | The type parameter is not IqType.Set or IqType.Get. | 
| System..::..ArgumentOutOfRangeException | The value of millisecondsTimeout is a negative number other than -1, which represents an indefinite timeout. | 
| 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, or there was a failure reading from the network. | 
| System..::..TimeoutException | A timeout was specified and it expired. |