Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an instance of the PresenceState(MachineState/AggregateMachineState/AggregateState/UserState) class.
Namespace: Microsoft.Rtc.Collaboration.Presence
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub New ( _
stateType As PresenceStateType, _
availability As Integer, _
activity As PresenceActivity _
)
'Usage
Dim stateType As PresenceStateType
Dim availability As Integer
Dim activity As PresenceActivity
Dim instance As New PresenceState(stateType, _
availability, activity)
public PresenceState(
PresenceStateType stateType,
int availability,
PresenceActivity activity
)
Parameters
- stateType
Type: Microsoft.Rtc.Collaboration.Presence.PresenceStateType
Type of presence state(MachineState/AggregateMachineState/AggregateState/UserState) instance being created.
- availability
Type: System.Int32
Availability value.
- activity
Type: Microsoft.Rtc.Collaboration.Presence.PresenceActivity
Activity token for this availability.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | Thrown when stateType is unknown, CalendarState or PhoneState. |
Remarks
A presence state type of CalendarState or PresenceState cannot be created with this constructor. For PresenceState use the constructor which specifically takes phone uri as one of its parameters.