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
- expiryTime
Type: System.Int32
Expiry duration in seconds.
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.