Sets the availability status. 
            
Namespace: S22.Xmpp.ImAssembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)
 Syntax
Syntax
| C# | 
|---|
| public void SetStatus( Availability availability, Dictionary<string, string> messages, sbyte priority = 0 ) | 
Parameters
- availability
- Type: S22.Xmpp.Im..::..Availability
 The availability state. Can be one of the values from the Availability enumeration, however not Availability.Offline.
- messages
- Type: System.Collections.Generic..::..Dictionary<(Of <(<'String, String>)>)>
 A dictionary of messages providing detailed descriptions of the availability state. The dictionary keys denote the languages of the messages and must be valid ISO 2 letter language codes.
- priority (Optional)
- Type: System..::..SByte
 Provides a hint for stanza routing.
 Exceptions
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. | 





