Blocks all communication to and from the XMPP entity with the specified JID.
Namespace: S22.Xmpp.ClientAssembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public void Block( Jid jid ) |
Parameters
- jid
- Type: S22.Xmpp..::..Jid
The JID of the XMPP entity to block.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | The jid parameter is null. |
| System..::..NotSupportedException | The server does not support the 'Blocking Command' extension and does not support privacy-list management. |
| S22.Xmpp..::..XmppErrorException | The server returned an XMPP error code. Use the Error property of the XmppErrorException to obtain the specific error condition. |
| S22.Xmpp..::..XmppException | The server returned invalid data or another unspecified XMPP error occurred. |
| System..::..InvalidOperationException | The XmppClient instance is not connected to a remote host. |
| System..::..ObjectDisposedException | The XmppClient object has been disposed. |