Sets the availability status.
Namespace: S22.Xmpp.ImAssembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public void SetStatus( Availability availability, string message = null, sbyte priority = 0, CultureInfo language = null ) |
Parameters
- availability
- Type: S22.Xmpp.Im..::..Availability
The availability state. Can be one of the values from the Availability enumeration, however not Availability.Offline.
- message (Optional)
- Type: System..::..String
An optional message providing a detailed description of the availability state.
- priority (Optional)
- Type: System..::..SByte
Provides a hint for stanza routing.
- language (Optional)
- Type: System.Globalization..::..CultureInfo
The language of the description of the availability state.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | The availability parameter has a value of Availability.Offline. |
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. |