Activates the privacy list with the specified name.
Namespace: S22.Xmpp.ImAssembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public void SetActivePrivacyList( string name = null ) |
Parameters
- name (Optional)
- Type: System..::..String
The name of the privacy list to activate. If this is null, any currently active list is deactivated.
Remarks
The 'active' privacy list applies only to this connected
resource or session, but not to the user as a whole. Only one privacy list
can be active at any time.
Exceptions
Exception | Condition |
---|---|
System.IO..::..IOException | There was a failure while writing to or reading from the network. |
System..::..InvalidOperationException | The XmppIm instance is not connected to a remote host, or the XmppIm instance has not authenticated with the XMPP server. |
System..::..ObjectDisposedException | The XmppIm object has been disposed. |
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. |