PresenceState.SetExpiryTime(Int32) Method

Definition

Allows the userstate to be active for a specified number of seconds.

public:
 void SetExpiryTime(int expiryTime);
public void SetExpiryTime (int expiryTime);
member this.SetExpiryTime : int -> unit
Public Sub SetExpiryTime (expiryTime As Integer)

Parameters

expiryTime
Int32

Expiry duration in seconds.

Exceptions

Thrown when expiry time is not between 1 and Int32.MaxValue seconds.

Remarks

Setting expiry time to a valid value results in a user state time based publication which would be active for expiryTime seconds.

Applies to