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,
	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

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