PresenceState.SetExpiryTime(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.