Sets the availability status.

Namespace: S22.Xmpp.Client
Assembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)

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

ExceptionCondition
System..::..ArgumentExceptionThe availability parameter has a value of Availability.Offline.
System.IO..::..IOExceptionThere was a failure while writing to or reading from the network.
System..::..InvalidOperationExceptionThe XmppClient instance is not connected to a remote host, or the XmppClient instance has not authenticated with the XMPP server.
System..::..ObjectDisposedExceptionThe XmppClient object has been disposed.

See Also