Partilhar via


PresenceState.SetExpiryTime Method

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

Namespace:  Microsoft.Rtc.Collaboration.Presence
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Sub SetExpiryTime ( _
    expiryTime As Integer _
)
'Usage
Dim instance As PresenceState
Dim expiryTime As Integer

instance.SetExpiryTime(expiryTime)
public void SetExpiryTime(
    int expiryTime
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

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.

See Also

Reference

PresenceState Class

PresenceState Members

Microsoft.Rtc.Collaboration.Presence Namespace